Bug 147858 - The 'length' property on interface objects should be configurable
Summary: The 'length' property on interface objects should be configurable
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/#es-in...
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2015-08-10 18:45 PDT by Chris Dumez
Modified: 2015-08-11 10:52 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.19 KB, patch)
2015-08-10 18:50 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (25.75 KB, patch)
2015-08-11 09:48 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (27.86 KB, patch)
2015-08-11 10:11 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (27.90 KB, patch)
2015-08-11 10:51 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 18:45:53 PDT
The 'length' property on interfaces objects should be configurable. Currently it isn't in WebKit.

Compatibility:
- Web IDL spec says the property should be configurable: http://heycam.github.io/webidl/#es-interface-call
- 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 18:50:49 PDT
Created attachment 258680 [details]
Patch
Comment 2 Chris Dumez 2015-08-11 09:48:18 PDT
Created attachment 258720 [details]
Patch
Comment 3 Chris Dumez 2015-08-11 10:11:01 PDT
Created attachment 258724 [details]
Patch
Comment 4 Daniel Bates 2015-08-11 10:44:58 PDT
Comment on attachment 258724 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258724&action=review

This patch looks sane to me.

> Source/WebCore/ChangeLog:15
> +        [1] http://heycam.github.io/webidl/#es-interface-call

Please add a remark to this line to document the date of the draft, 17 July 2015.

> LayoutTests/fast/dom/length-property-configurable.html:6
> +description("The 'length' property on interfaces objects should have attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }");

Nit: Missing a period at the end of this sentence.
Comment 5 Daniel Bates 2015-08-11 10:45:19 PDT
Comment on attachment 258724 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258724&action=review

> Source/WebCore/ChangeLog:21
> +

Nit: Please remove this empty line.
Comment 6 Chris Dumez 2015-08-11 10:51:10 PDT
Created attachment 258725 [details]
Patch
Comment 7 Chris Dumez 2015-08-11 10:52:18 PDT
Comment on attachment 258725 [details]
Patch

Clearing flags on attachment: 258725

Committed r188261: <http://trac.webkit.org/changeset/188261>
Comment 8 Chris Dumez 2015-08-11 10:52:23 PDT
All reviewed patches have been landed.  Closing bug.