Intent to Ship: Allow Navigator.registerProtocolHandler to register "ftp"

374 views
Skip to first unread message

Asanka Herath

unread,
Apr 14, 2021, 1:51:39 PM4/14/21
to blink-dev

Contact emails

asa...@chromium.org

Explainer

None

Specification

None

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.



Blink component

Blink>HTML>CustomHandlers

Search tags

ftpregisterprotocolhandler

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None


The implementation gives precedence to native protocol handlers before consulting sites registered via registerProtcolHandler.

Gecko: No signal

WebKit: No signal

Web developers: No signals


Is this feature fully tested by web-platform-tests?

Yes. After crrev/2826871

Flag name

None

Tracking bug

https://crbug.com/1199027

Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/5762628536238080

This intent message was generated by Chrome Platform Status.

Frédéric Wang

unread,
Apr 14, 2021, 2:43:36 PM4/14/21
to blin...@chromium.org
Le 14/04/2021 à 19:51, Asanka Herath a écrit :
SpecificationNone

Custom handlers schemes are defined here : https://html.spec.whatwg.org/multipage/system-state.html#safelisted-scheme

Can you please provide the link to the corresponding WHATWG discussion ?

Gecko: No signal

WebKit: No signal

WebKit does not support registerProtocolHandler, but Gecko does. Do they support / used to support these schemes natively ?

I think it would be good to get feedback from other browser developers on this change.

-- 
Frédéric Wang

Asanka Herath

unread,
Apr 14, 2021, 5:00:01 PM4/14/21
to Frédéric Wang, blink-dev
Thanks for the nudge. I filed the following issues to gather feedback from Firefox and to make the spec change:

-- 
Frédéric Wang

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/d69b6dc2-5d15-dd1f-0826-2dfde089711c%40igalia.com.

Daniel Bratell

unread,
Apr 15, 2021, 3:57:20 AM4/15/21
to Asanka Herath, Frédéric Wang, blink-dev


On 2021-04-14 22:59, Asanka Herath wrote:


On Wed, Apr 14, 2021 at 2:43 PM Frédéric Wang <fw...@igalia.com> wrote:
Le 14/04/2021 à 19:51, Asanka Herath a écrit :
SpecificationNone

Custom handlers schemes are defined here : https://html.spec.whatwg.org/multipage/system-state.html#safelisted-scheme

Can you please provide the link to the corresponding WHATWG discussion ?

Gecko: No signal

WebKit: No signal

WebKit does not support registerProtocolHandler, but Gecko does. Do they support / used to support these schemes natively ?

I think it would be good to get feedback from other browser developers on this change.

Thanks for the nudge. I filed the following issues to gather feedback from Firefox and to make the spec change:

Recently we have nailed down a more well defined method for determining the opinion of other vendors. It's written down at https://bit.ly/blink-signals and includes where to request feedback (bug reports don't quite work as a way to get the official standings we've learned).

/Daniel


Asanka Herath

unread,
Apr 15, 2021, 2:48:44 PM4/15/21
to Daniel Bratell, Frédéric Wang, blink-dev
Thanks Daniel for the pointer! I filed an issue requesting Mozilla's position at https://github.com/mozilla/standards-positions/issues/513 .
- Asanka 

/Daniel


Yoav Weiss

unread,
Apr 15, 2021, 3:39:54 PM4/15/21
to blink-dev, Asanka Herath, fw...@igalia.com, blink-dev, Daniel Bratell
Can you send a similar email to webkit-dev, asking them for their opinion? While they don't support protocol registration in general, it might be useful to get their opinion on it, and the make them aware that we are shipping additions to it, which people (presumably) find useful.

Yoav Weiss

unread,
May 5, 2021, 8:53:14 AM5/5/21
to blink-dev, Yoav Weiss, Asanka Herath, fw...@igalia.com, blink-dev, Daniel Bratell
Friendly ping! :)

Yoav Weiss

unread,
May 17, 2021, 9:44:01 AM5/17/21
to blink-dev, Yoav Weiss, Asanka Herath, fw...@igalia.com, blink-dev, Daniel Bratell
An even friendlier ping! :)

Asanka Herath

unread,
May 17, 2021, 3:25:01 PM5/17/21
to Yoav Weiss, blink-dev, fw...@igalia.com, Daniel Bratell
Thanks for the ping!

I got feedback from FF that this is "worth prototyping." I set Safari's views to N/A for now due to them not supporting the API. I just sent an email to webkit-dev to request their opinion either way. The Chromestatus entropy should be up-to-date with this info.

I'll add WebKit's views once I hear back from them.

- Asanka

Daniel Bratell

unread,
May 20, 2021, 2:53:38 PM5/20/21
to Asanka Herath, Yoav Weiss, blink-dev, fw...@igalia.com

WebKit has not been interested in registerProtocolHandler previously so I'm not sure we can expect any proper analysis from webkit-dev about individual protocols.

/Daniel

Chris Harrelson

unread,
May 20, 2021, 3:06:32 PM5/20/21
to Daniel Bratell, Asanka Herath, Yoav Weiss, blink-dev, fw...@igalia.com
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Mike West

unread,
May 20, 2021, 3:08:31 PM5/20/21
to Chris Harrelson, Daniel Bratell, Asanka Herath, Yoav Weiss, blink-dev, fw...@igalia.com

Domenic Denicola

unread,
May 20, 2021, 3:17:16 PM5/20/21
to Mike West, Chris Harrelson, Daniel Bratell, Asanka Herath, Yoav Weiss, blink-dev, fw...@igalia.com

It looks like Mozilla is on board with this per https://github.com/mozilla/standards-positions/issues/513. Would you be able to submit a HTML Standard pull request?

Rick Byers

unread,
May 20, 2021, 3:20:56 PM5/20/21
to Domenic Denicola, Mike West, Chris Harrelson, Daniel Bratell, Asanka Herath, Yoav Weiss, blink-dev, fw...@igalia.com

Asanka Herath

unread,
May 21, 2021, 9:33:27 AM5/21/21
to Rick Byers, Domenic Denicola, Mike West, Chris Harrelson, Daniel Bratell, Yoav Weiss, blink-dev, fw...@igalia.com
Thanks all!

+Domenic Denicola : I added you to the existing PR which was waiting for a signal from FF which is now resolved.

Javier Garcia Visiedo

unread,
Jun 21, 2023, 2:53:54 AM6/21/23
to blink-dev, Asanka Herath
Hi all,

I'm revisiting this I2S, as the code changes were never merged probably due to ongoing spec discussions at the time. I'd like to ship these changes now. Please let me know if these LGTMs are still valid, or if you need any additional input from my side.

Thank you
Javier

TAMURA, Kent

unread,
Jun 21, 2023, 3:33:41 AM6/21/23
to Javier Garcia Visiedo, blink-dev, Asanka Herath
The HTML specification was updated for this change, and we don't see any bad signals after the last discussion.  I think it's ok to land the implementation without re-approvals.


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.


--
TAMURA Kent
Software Engineer, Google


Javier Garcia Visiedo

unread,
Jun 22, 2023, 4:01:30 AM6/22/23
to TAMURA, Kent, Javier Garcia Visiedo, blink-dev, Asanka Herath
Reply all
Reply to author
Forward
0 new messages