[Bug 15765] Replaceable interface

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15765

--- Comment #5 from Boris Zbarsky <bzbarsky@mit.edu> 2012-01-30 16:48:07 UTC ---
> 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).

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 30 January 2012 16:48:11 UTC