Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to unship: title argument of Navigator.registerProtocolHandler

83 views
Skip to first unread message

Frédéric Wang

unread,
Apr 21, 2020, 2:51:10 AM4/21/20
to
As of 2020-05-05 I intend to remove the title argument of
Navigator.registerProtocolHandler. It has been removed from the HTML5
specification and none of the existing implementation does something
UI-wise [1]. Status in other browsers is:

* WebKit: Navigator.registerProtocolHandler is not implemented.
* Chromium: Title argument parsed but not used in the browser UI. Bug
opened to remove it [2] and patch + intent to remove to be sent. However
all feature removals are on hold in Chromium, so this one will likely be
delayed too.

Bug to remove: https://bugzilla.mozilla.org/show_bug.cgi?id=1631464

No telemetry analysis has been performed but the argument is likely used
in many pages since it is mentioned in developer documentation and
examples, including MDN. Consequently, it is probably preferable to just
ignore the title argument without spamming the developer console.

The title is not used for the UI so there won't be any observable UI
change for users. It can be using JavaScript but only in cases that are
not done in practice e.g.

navigator.registerProtocolHandler(protocol, url, { toString: () => {
alert('Hello World!'); } });

[1] https://github.com/whatwg/html/pull/5425
[2] https://bugs.chromium.org/p/chromium/issues/detail?id=1072461

--
Frédéric Wang

Frédéric Wang

unread,
Oct 28, 2020, 4:12:03 AM10/28/20
to

On 21/04/2020 08:51, Frédéric Wang wrote:
> As of 2020-05-05 I intend to remove the title argument of
> Navigator.registerProtocolHandler. It has been removed from the HTML5
> specification and none of the existing implementation does something
> UI-wise [1].

This change finally landed yesterday.

--
Frédéric Wang
0 new messages