Bug 147861 - The 'prototype' property on interface objects should not be enumerable
Summary: The 'prototype' property on interface objects should not be enumerable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: http://heycam.github.io/webidl/#inter...
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2015-08-10 19:18 PDT by Chris Dumez
Modified: 2015-08-11 07:57 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.71 KB, patch)
2015-08-10 20:38 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-08-10 19:18:17 PDT
The 'prototype' property on interfaces objects should NOT be enumerable. Currently it is in WebKit.

Compatibility:
- Web IDL spec says the property should NOT be enumerable: http://heycam.github.io/webidl/#interface-object
- It is configurable in Firefox 38 and Chrome 44.

W3C test suite:
http://w3c-test.org/dom/interfaces.html
Comment 1 Chris Dumez 2015-08-10 19:30:20 PDT
(In reply to comment #0)
> The 'prototype' property on interfaces objects should NOT be enumerable.
> Currently it is in WebKit.
> 
> Compatibility:
> - Web IDL spec says the property should NOT be enumerable:
> http://heycam.github.io/webidl/#interface-object
> - It is configurable in Firefox 38 and Chrome 44.

I meant it is *not enumerable* in Firefox 38 and Chrome 44.
Comment 2 Chris Dumez 2015-08-10 20:38:53 PDT
Created attachment 258695 [details]
Patch
Comment 3 WebKit Commit Bot 2015-08-10 23:42:29 PDT
Comment on attachment 258695 [details]
Patch

Clearing flags on attachment: 258695

Committed r188252: <http://trac.webkit.org/changeset/188252>
Comment 4 WebKit Commit Bot 2015-08-10 23:42:34 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Csaba Osztrogonác 2015-08-11 00:30:39 PDT
(In reply to comment #3)
> Comment on attachment 258695 [details]
> Patch
> 
> Clearing flags on attachment: 258695
> 
> Committed r188252: <http://trac.webkit.org/changeset/188252>

It broke the bindings tests. Could you fix it?
Comment 6 Chris Dumez 2015-08-11 07:57:34 PDT
(In reply to comment #5)
> (In reply to comment #3)
> > Comment on attachment 258695 [details]
> > Patch
> > 
> > Clearing flags on attachment: 258695
> > 
> > Committed r188252: <http://trac.webkit.org/changeset/188252>
> 
> It broke the bindings tests. Could you fix it?

Done in https://trac.webkit.org/r188254, thanks.