Open annevk opened 7 years ago
Here's a manually filtered list I build for #363 based on running awk on Gecko's src files:
Thanks, seems like we could just drop the keyword from those and be done with it. I guess part of the problem is some of those specifications not being maintained, but that can be fixed one way or another.
Well, we'd want to make sure suddenly exposing these interfaces to the Web doesn't break stuff, no?
Yeah, I suppose the ones with overly generic names should be prefixed, but seems safe otherwise.
Prefixing is an observable change. No idea if it would have real impact, though.
How is it observable?
navigator.geolocation.getCurrentPosition(p => console.log(Object.prototype.toString.call(p)));
// [object Position]
Sigh. Part of the reason we had [NoInterfaceObject] was the ability to ship objects and change the name later. I guess that's another reason we should really get rid of it (and decide on names we can live with upfront).
WebGL seems fixed. I filed issues against two other specifications I identified from the list above. Anything else?
Searching through Blink, External
in the HTML spec needs fixing. There's also https://github.com/w3c/mediacapture-main/issues/501 which is weird.
Also https://w3c.github.io/webappsec-feature-policy/#featurepolicy ... a little hard to tell since Blink doesn't have interface mixin syntax yet, so lots of stuff is mixed together.
Fwiw, that's why I haven't looked at this in Gecko either. It'll be a lot simpler once we implement mixin syntax...
Per https://github.com/heycam/webidl/pull/423#issuecomment-326332460 this exists. I'd like to study such usage and see if we can get rid of it.