<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web IDL: DOM &quot;onfoo&quot; attributes should be configurable and enumerable"
   href="https://bugs.webkit.org/show_bug.cgi?id=149474#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web IDL: DOM &quot;onfoo&quot; attributes should be configurable and enumerable"
   href="https://bugs.webkit.org/show_bug.cgi?id=149474">bug 149474</a>
              from <span class="vcard"><a class="email" href="mailto:cdumez&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <span class="fn">Chris Dumez</span></a>
</span></b>
        <pre>Yes, Window is defined with [PrimaryGlobal]:
<a href="https://html.spec.whatwg.org/multipage/browsers.html#the-window-object">https://html.spec.whatwg.org/multipage/browsers.html#the-window-object</a>

As per the Web IDL spec [1], if the interface has [Global] or [PrimaryGlobal], the attributes should be on the instance rather than the prototype.

However, our bindings generator currently has an exception that makes attributes that are on the instance non-configurable.

If an attribute is not enumerable, it likely means that it has [NotEnumerable] on it in the WebKit IDL because they should be enumerable by default.

[1] <a href="https://heycam.github.io/webidl/#es-attributes">https://heycam.github.io/webidl/#es-attributes</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>