Limit registerProtocolHandler() url argument to http/https

Limits registerProtocolHandler() to only accept URLs with http or https as the schema. This is because it doesn't make much sense for handlers to be data URLs, blob URLs, or whatever. The guidance on states: 'The handler's URL must use one of "http" or "https" as its scheme.' The spec lets implementers to add additional checks like this


De-facto standard

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 77

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • No public signals
  • No signals


Last updated on 2019-07-10