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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>76085</bug_id>
          
          <creation_ts>2012-01-11 11:47:11 -0800</creation_ts>
          <short_desc>IETC audio-interface-inherit.129 claims NETWORK_NO_SOURCE should not be overrideable</short_desc>
          <delta_ts>2012-01-12 12:10:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>---</target_milestone>
          
          <blocked>76198</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>534076</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-11 11:47:11 -0800</bug_when>
    <thetext>IETC audio-interface-inherit.129 claims NETWORK_NO_SOURCE should not be overrideable

http://samples.msdn.microsoft.com/ietestcenter/html5/MediaElements/audio-interface-inherit.129.htm

I&apos;m not sure there is a bug here.  We define NETWORK_NO_SOURCE on HTMLMediaElement, per the spec:
http://www.whatwg.org/specs/web-apps/current-work/#media-elements

Even though that value is constant, it seems any object instance which has HTMLMediaElement can still set its own NETWORK_NO_SOURCE, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534171</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-11 13:00:22 -0800</bug_when>
    <thetext>Actually, my understanding was incorrect.

This is a bug in our code generator, not implying readonly from const:
http://www.w3.org/TR/WebIDL/#es-constants</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534175</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-11 13:02:22 -0800</bug_when>
    <thetext>Nope, that&apos;s wrong too.  It&apos;s already being generated readonly:


    { &quot;NETWORK_NO_SOURCE&quot;, DontDelete | ReadOnly, (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsHTMLMediaElementNETWORK_NO_SOURCE), (intptr_t)0, NoIntrinsic },</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534193</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-11 13:13:59 -0800</bug_when>
    <thetext>I&apos;m unclear from the WebIDL spec.  http://www.w3.org/TR/WebIDL/#es-constants

4.5.4. Constants

For each constant defined on an interface A, there must be a corresponding property on the interface object, if it exists. The property has the following characteristics:

The name of the property is the identifier of the constant.
The value of the property is that which is obtained by converting the constant’s IDL value to an ECMAScript value.
The property has attributes { [[Writable]]: false, [[Enumerable]]: true, [[Configurable]]: false }.
In addition, a property with the same characteristics must exist on the interface prototype object.


Does that mean that each instance of an HTMLAudioElement has to have NETWORK_NO_SOURCE defined readonly?  Currently it appears we just define this on the prototype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534194</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-11 13:15:17 -0800</bug_when>
    <thetext>&gt; audio = document.createElement(&quot;audio&quot;)
&lt;audio&gt;​&lt;/audio&gt;​
&gt; audio.__proto__
HTMLAudioElement
&gt; audio.NETWORK_NO_SOURCE
3
&gt; audio.__proto__ = null
null
&gt; audio.NETWORK_NO_SOURCE
undefined</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534199</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-01-11 13:19:10 -0800</bug_when>
    <thetext>I&apos;m pretty sure the test is wrong.  The constant is supposed to appear in the interface and the interface prototype, not the instance.  Assigning to the property on the instance creates a new property on the instance that shadows the readonly property on the prototype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534254</commentid>
    <comment_count>6</comment_count>
      <attachid>122097</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-01-11 14:19:30 -0800</bug_when>
    <thetext>Created attachment 122097
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534364</commentid>
    <comment_count>7</comment_count>
      <attachid>122097</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-11 16:08:21 -0800</bug_when>
    <thetext>Comment on attachment 122097
Patch

Clearing flags on attachment: 122097

Committed r104761: &lt;http://trac.webkit.org/changeset/104761&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534365</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-11 16:08:26 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>122097</attachid>
            <date>2012-01-11 14:19:30 -0800</date>
            <delta_ts>2012-01-11 16:08:21 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-76085-20120111141929.patch</filename>
            <type>text/plain</type>
            <size>2802</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09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