New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove registerContentHandler() and several friends #3027
Conversation
They have seen extremely poor adoption unfortunately and were not implemented in line with the standard. Fixes #630.
Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1398169. |
Note that the algorithms for these methods could generally be much better too. I haven't invested in that for now. It seems better to get closer to the status quo first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a couple leftovers, one noted inline. Then also, Ctrl+Fing "content handler" shows:
allows Web pages to register themselves as potential protocol and content handlers:
Sad to see these go, but always good to align with what's implemented...
@@ -92119,7 +91886,7 @@ interface <dfn>NavigatorContentUtils</dfn> { | |||
<p><strong>Misleading titles.</strong> User agents should not rely wholly on the <var>title</var> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above this there is an example of people registering video/mpeg many times, which is no longer applicable.
source
Outdated
@@ -92119,7 +91886,7 @@ interface <dfn>NavigatorContentUtils</dfn> { | |||
<p><strong>Misleading titles.</strong> User agents should not rely wholly on the <var>title</var> | |||
argument to the methods when presenting the registered handlers to the user, since sites could | |||
easily lie. For example, a site <code data-x="">hostile.example.net</code> could claim that it was | |||
registering the "Cuddly Bear Happy Content Handler". User agents should therefore use the | |||
registering the "Cuddly Bear Happy Scheme Handler". User agents should therefore use the | |||
handler's domain in any UI along with any title.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While here, maybe domain -> origin?
I'm rather happy to see Nits addressed. Once this lands I'd like to do some further cleanup and file bugs against browsers for the remainder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I think we should add some historical.html tests and update any IDL tests, ideally before merging? Sounds like you have a specific plan with the cleanup first though, which I am happy to trust.
When you do your bug-filing, browsers might particularly appreciate you searching for feature-request bugs filed on them for implementing these methods, and commenting to say "this can be closed now as we've removed it from the spec". |
I filed #3043 for the follow-up work. |
They have seen extremely poor adoption unfortunately and were not implemented in line with the standard.
Fixes #630.