[GH-ISSUE #6] Have you considered a custom protocol handler instead? #5

Closed
opened 2026-02-27 07:17:04 +03:00 by kerem · 1 comment
Owner

Originally created by @dellagustin-sap on GitHub (May 31, 2021).
Original GitHub issue: https://github.com/jonroig/MailtOWA/issues/6

Hello, thanks for this extension.

Have you considered using a custom protocol handler instead of injecting a script on every page?
Would it be a feasible option?
https://developers.google.com/web/updates/2011/06/Registering-a-custom-protocol-handler

Originally created by @dellagustin-sap on GitHub (May 31, 2021). Original GitHub issue: https://github.com/jonroig/MailtOWA/issues/6 Hello, thanks for this extension. Have you considered using a custom protocol handler instead of injecting a script on every page? Would it be a feasible option? https://developers.google.com/web/updates/2011/06/Registering-a-custom-protocol-handler
kerem closed this issue 2026-02-27 07:17:04 +03:00
Author
Owner

@jonroig commented on GitHub (Aug 4, 2021):

That's.... a fair question. (Apologies for the delayed response.) It's been so long that I had to look this up and figure out why I did it this way...

In this case, it's something MS would have to do:
"The URL template supplied when registering must be of the same domain as the webpage attempting to perform the registration or the registration will fail. For example, http://example.com/homepage.html can register a protocol handler for http://example.com/handle_mailto/%s, but not for http://example.org/handle_mailto/%s."

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers

<!-- gh-comment-id:893012217 --> @jonroig commented on GitHub (Aug 4, 2021): That's.... a fair question. (Apologies for the delayed response.) It's been so long that I had to look this up and figure out why I did it this way... In this case, it's something MS would have to do: "The URL template supplied when registering must be of the same domain as the webpage attempting to perform the registration or the registration will fail. For example, http://example.com/homepage.html can register a protocol handler for http://example.com/handle_mailto/%s, but not for http://example.org/handle_mailto/%s." https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/MailtOWA-jonroig#5
No description provided.