This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The URL spec [1] currently has interface [Replaceable] URL {}; which I believe we found is required for compat. It seems we should spec such a thing. [1] http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#interface-url
What does that even mean? "Replaceable" is needed for accessor properties because otherwise assignment won't create an own property. But doing this: URL = whatever (with or without var) would work fine. The only weird thing I can think of is if you want something like this: <script> var URL; alert(URL) </script> to alert undefined. Is that what the URL spec wants? That runs right back into the whole "there is no way to express this in ES5 terms" issue we just had with named properties on Window.
Can you clarify what it's meant to mean?
Maybe the URL spec should rename "URL" instead.
Boris, you fixed the bug at <https://bugzilla.mozilla.org/show_bug.cgi?id=617296>; maybe you could explain what you did? :) (In reply to comment #3) > Maybe the URL spec should rename "URL" instead. With createObjectURL deployed, I'm afraid that's too late.
> maybe you could explain what you did? :) Sure. As implemented right now in Gecko, there is no "URL" interface. Instead there is a MozURLProperty interface defined as follows: interface MozURLProperty { DOMString createObjectURL(Blob blob); void revokeObjectURL(DOMString URL); }; and a property on the Window interface defined as follows: readonly attribute MozURLProperty URL; The bug you linked to made this readonly property replaceable. That's a perfectly sensible concept and all. If we were to introduce a URL interface (which would presumably have static methods on it for createObjectURL/revokeObjectURL?) instead of having a property on the window, then we'd just remove the above readonly property and the replaceability code for it, and the site that bug was about would Just Work (well, it'd nuke window.URL with its own stuff, but work within that constraint).
Alright, over to URL, then.
So this bug is just about removing [Replaceable] at this point, right?
It appears so.
http://dvcs.w3.org/hg/url/rev/7f474a8a87d9