Bug 147865 - [WebIDL] All interface objects must have a property named "name"
Summary: [WebIDL] All interface objects must have a property named "name"
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 21:23 PDT by Chris Dumez
Modified: 2015-08-11 09:59 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.99 KB, patch)
2015-08-10 21:28 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (6.84 KB, patch)
2015-08-10 21:30 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (535.10 KB, application/zip)
2015-08-10 22:11 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (732.99 KB, application/zip)
2015-08-10 22:12 PDT, Build Bot
no flags Details
Patch (27.08 KB, patch)
2015-08-11 09:55 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (27.02 KB, patch)
2015-08-11 09:58 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 21:23:02 PDT
As per the Web IDL specification, all interface objects must have a property named "name" with attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true } whose value is the identifier of the corresponding interface:
http://heycam.github.io/webidl/#es-interface-call

Currently, our interface objects have no such property.

Both Firefox 38 and Chrome 44 comply with the Web IDL specification here.
Comment 1 Chris Dumez 2015-08-10 21:28:19 PDT
Created attachment 258699 [details]
Patch
Comment 2 Chris Dumez 2015-08-10 21:30:56 PDT
Created attachment 258700 [details]
Patch
Comment 3 Build Bot 2015-08-10 22:11:10 PDT
Comment on attachment 258700 [details]
Patch

Attachment 258700 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/43166

New failing tests:
media/track/track-cue-empty-cue-text.html
Comment 4 Build Bot 2015-08-10 22:11:15 PDT
Created attachment 258703 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-08-10 22:12:00 PDT
Comment on attachment 258700 [details]
Patch

Attachment 258700 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/43160

New failing tests:
media/track/track-cue-empty-cue-text.html
Comment 6 Build Bot 2015-08-10 22:12:05 PDT
Created attachment 258704 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Darin Adler 2015-08-10 22:53:55 PDT
Comment on attachment 258700 [details]
Patch

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

> Source/WebCore/ChangeLog:23
> +        * bindings/scripts/CodeGeneratorJS.pm:
> +        (GenerateConstructorHelperMethods):

Need to do:

    run-bindings-tests --reset-results

And include the change to expected results in the patch.
Comment 8 Darin Adler 2015-08-10 22:55:37 PDT
Looks like that media/track/track-cue-empty-cue-text.html change is a real change, maybe a progression. So need to include expectations changes for that in the patch too.
Comment 9 Chris Dumez 2015-08-11 09:12:05 PDT
(In reply to comment #8)
> Looks like that media/track/track-cue-empty-cue-text.html change is a real
> change, maybe a progression. So need to include expectations changes for
> that in the patch too.

Yes, it looks like a progression indeed:
 ** The document fragment should have one child, an empty Text node **
 EXPECTED (fragment.childNodes.length == '1') OK
 EXPECTED (fragment.childNodes[0].length == '0') OK
-EXPECTED (fragment.childNodes[0].constructor.name == 'undefined') OK
+EXPECTED (fragment.childNodes[0].constructor.name == 'Text') OK

I'll rebaseline this and the bindings tests before landing.
Comment 10 Chris Dumez 2015-08-11 09:55:03 PDT
Created attachment 258721 [details]
Patch
Comment 11 Chris Dumez 2015-08-11 09:58:02 PDT
Created attachment 258722 [details]
Patch
Comment 12 Chris Dumez 2015-08-11 09:59:15 PDT
Comment on attachment 258722 [details]
Patch

Clearing flags on attachment: 258722

Committed r188258: <http://trac.webkit.org/changeset/188258>
Comment 13 Chris Dumez 2015-08-11 09:59:19 PDT
All reviewed patches have been landed.  Closing bug.