W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 15765] Replaceable interface

From: <bugzilla@jessica.w3.org>
Date: Mon, 30 Jan 2012 16:48:08 +0000
To: public-script-coord@w3.org
Message-Id: <E1RruOm-0002QJ-87@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC