-
Notifications
You must be signed in to change notification settings - Fork 141
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
Let webkitURL be an alias of the URL constructor #135
Comments
What would we add, |
No, just the aliasing prose like HTML's
We could consider formalizing this in IDL with some new extended attribute... |
@miketaylr have you seen this in the wild as a problem for Firefox? Seems like we should just add it given that all other browsers ship with it. @foolip how many aliases do we have? Is it worth adding IDL syntax? |
Blink has a Other aliases are For (More generally I'd be interested to hear what non-standard stuff would be most useful to remove from Blink, there's a lot to choose from.) |
I'm not aware of any broken sites for Firefox due to (edit: after poking around a bit more on GitHub, there's quite a bit of code like https://github.com/catarak/beatsncode/blob/0bfe7025d4535a57930172c832e3fa0562f9b381/js/main.js. So even though I don't know about any broken sites, I don't doubt they're out there.) |
Chrome use counter is around 0.1% WebKit just fixed https://bugs.webkit.org/show_bug.cgi?id=172166 to stop exposing the We now have IDL syntax for this. It seems the shortest and least painful path to interop is to specify |
Sounds reasonable. Is there a Gecko issue on adding IDL support for that extended attribute? Does IDL harness support it so I don't need to write more tests than just adding it to url/interfaces.any.js? |
IDL harness support was added in web-platform-tests/wpt#5966 I can file a bug for Gecko for implementing |
It also seems plausible that the opposite could also happen. Supporting certain APIs that are used to detect WebKit could also increase the pressure to put "WebKit" (or "Chrome") in the UA string. |
Searching GitHub for "isWebKit webkitURL" reveals some instances of using this to detect WebKit... Not conclusive from this if it's better for everyone to drop it, for everyone to support it, or if we're locked to the current split... https://github.com/tcha-tcho/famous_basic/blob/bbc619647dae4cc15e3f6bc3a531019f2fdfcde0/js/famous/famous-utils/Utils.js#L278 |
I'm OK with having [LegacyWindowAlias]. Temporary solution can be the use of NamedConstructor in gecko code. |
OK great, then we can go ahead and merge. |
Measuring usage of attributes on the global object is hard because it's tainted by enumeration, but this is what we have:
https://www.chromestatus.com/metrics/feature/timeline/popularity/283
(Compare to https://www.chromestatus.com/metrics/feature/timeline/popularity/356 which is likely used very little but is also at ~0.1%.)
window.webkitURL
has been deprecated in Blink for a long time, and I need to either remove it or get rid of the deprecation message. I'm leaning towards just spec'ing it, because Edge haswindow.webkitURL
and it's trivial to support if you also have the infrastructure for other constructor aliases likeWebKitAnimationEvent
or, perhaps,HTMLDocument
as an alias ofDocument
(not yet implemented).The text was updated successfully, but these errors were encountered: