Allow Navigator.registerProtocolHandler to register FTP related protocols.
- Category
- Network / Connectivity
- Type
- No developer-visible change
- Status
- In development (Chrome In development)
- Intent stage
- Prepare to ship
Summary
Add "ftp", "ftps", and "sftp" to the list of protocols available for registration via registerProtocolHandler(). FTP is now deprecated and will imminently be removed from the codebase. Allowing websites to register themselves as handlers for ftp:// URLs makes it possible to build easy to use gateways for legacy ftp sites. In addition we propose adding related protocols "ftps" and "sftp" to the list. Google Chrome/Chromium was not handling these URL schemes.
Motivation
FTP is now no longer natively supported in Chromium derived browsers as well as Firefox. Safari never supported it in the first place. The dominant use-case for in-browser support was to download things via anonymous FTP. This usecase can be served by allowing `ftp` to be treated as a custom registrable protocol. Thus any website can advertise and handle FTP URLs and provide access to resources over FTP.
Standards & signals
- Specification: https://github.com/whatwg/html/pull/6584
- Firefox: Positive — Suggested filtering out credentials from outgoing FTP links.
- Safari: N/A — Safari does not support `registerProtocolHandler`.
- Web developers: Positive
- Tracking bug: https://crbug.com/1199027
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=allow-navigator-registerprotocolhandler-to-register-ftp-related-protocols
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Allow%20Navigator.registerProtocolHandler%20to%20register%20FTP%20related%20protocols.
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Allow%20Navigator.registerProtocolHandler%20to%20register%20FTP%20related%20protocols.
- Baseline status: https://webstatus.dev/?q=Allow%20Navigator.registerProtocolHandler%20to%20register%20FTP%20related%20protocols.