Limits registerProtocolHandler() to only accept URLs with http or https schemas. Because the intent of the API is to allow and endpoint to handle something like an SMS message, for example, it doesn't make much sense for handlers to be data URLs, blob URLs, or whatever.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler