Open
Description
Summary
We want dweb protocols to be available without web+
prefix in contexts such as:
navigator.registerProtocolHandler
- WebExtensions (manifest.json/protocol_handlers, if vendor supports it)
Namely: "ssb", "dat", "ipfs", "ipns", "dweb" (comment if something else should be added to the list)
Motivation
Safelisting protocols in above contexts is an easy change and it makes it possible for community to start using non-HTTP addresses with HTTP-based gateways/readers even before native protocol handler API is introduced.
Additionally, if we have at least two vendors implementing proposed change we would have a solid case for adding them as safelisted-scheme in HTML Spec.
Tasks
- Update HTML Spec to include protocols on "safelist"
- upstream issue: Safelist protocol handlers for DWeb whatwg/html#3935
navigator.registerProtocolHandler
allows handler withoutweb+
prefix- Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1631446 and Add new safelisted schemes for registerProtocolHandler() mozilla/standards-positions#339
- Chromium: https://crbug.com/651311#c10 + intent-to-implement
- ? (to add item here create issue in vendor's tracker and comment below)
- WebExtension is able to register
navigator.registerProtocolHandler
-like handler without user interaction (see Safelisting DWeb Protocols #23 (comment) for more context)- Firefox (via manifest.json/protocol_handlers)
- Chrome (not supported atm, filled bug: https://crbug.com/883274)
Resources
- List of safelisted-schemes in HTML Spec
- Firefox 59 whitelists protocol handlers for work on decentralization technologies (webextensions only)
- [whatwg] Adding "ipfs" to the safelisted schemes by @mathiasrw
- stalled due to lack of vendors implementing change for
navigator.registerProtocolHandler
- stalled due to lack of vendors implementing change for