<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15765</bug_id>
          
          <creation_ts>2012-01-28 20:46:47 +0000</creation_ts>
          <short_desc>Replaceable interface</short_desc>
          <delta_ts>2012-12-21 14:41:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>URL</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>erik.arvidsson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>public-webapps</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63236</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-01-28 20:46:47 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63269</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-01-29 01:16:14 +0000</bug_when>
    <thetext>What does that even mean?  &quot;Replaceable&quot; is needed for accessor properties because otherwise assignment won&apos;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:

  &lt;script&gt;
    var URL;
    alert(URL)
  &lt;/script&gt;

to alert undefined.  Is that what the URL spec wants?  That runs right back into the whole &quot;there is no way to express this in ES5 terms&quot; issue we just had with named properties on Window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63303</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-01-29 23:13:16 +0000</bug_when>
    <thetext>Can you clarify what it&apos;s meant to mean?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63314</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-01-30 09:07:58 +0000</bug_when>
    <thetext>Maybe the URL spec should rename &quot;URL&quot; instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63319</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-01-30 09:44:07 +0000</bug_when>
    <thetext>Boris, you fixed the bug at &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=617296&gt;; maybe you could explain what you did? :)

(In reply to comment #3)
&gt; Maybe the URL spec should rename &quot;URL&quot; instead.

With createObjectURL deployed, I&apos;m afraid that&apos;s too late.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63340</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-01-30 16:48:07 +0000</bug_when>
    <thetext>&gt; maybe you could explain what you did? :)

Sure.  As implemented right now in Gecko, there is no &quot;URL&quot; 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&apos;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&apos;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&apos;d nuke window.URL with its own stuff, but work within that constraint).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63343</commentid>
    <comment_count>6</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-01-30 17:40:32 +0000</bug_when>
    <thetext>Alright, over to URL, then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67633</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-12 09:37:37 +0000</bug_when>
    <thetext>So this bug is just about removing [Replaceable] at this point, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67634</commentid>
    <comment_count>8</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-05-12 09:41:07 +0000</bug_when>
    <thetext>It appears so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67644</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-14 10:51:57 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/url/rev/7f474a8a87d9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>