Bug 147858

Summary: The 'length' property on interface objects should be configurable
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, darin, dbates, ggaren, sam
Priority: P2 Keywords: WebExposed
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://heycam.github.io/webidl/#es-interface-call
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

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.