WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
154038
[Web IDL] interface objects should be Function objects
https://bugs.webkit.org/show_bug.cgi?id=154038
Summary
[Web IDL] interface objects should be Function objects
Chris Dumez
Reported
2016-02-09 09:57:19 PST
interface objects should be Function objects as per Web IDL: -
http://heycam.github.io/webidl/#interface-object
-
http://heycam.github.io/webidl/#es-interfaces
So window.Event should be a Function object for e.g. but in WebKit it is a regular EventConstructor JSObject. Firefox and Chrome match the specification.
Attachments
WIP Patch
(208.89 KB, patch)
2016-02-09 22:19 PST
,
Chris Dumez
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-yosemite
(932.97 KB, application/zip)
2016-02-09 23:06 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews104 for mac-yosemite-wk2
(877.31 KB, application/zip)
2016-02-09 23:10 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews116 for mac-yosemite
(990.96 KB, application/zip)
2016-02-09 23:17 PST
,
Build Bot
no flags
Details
WIP patch
(516.32 KB, patch)
2016-02-10 10:25 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-yosemite-wk2
(851.32 KB, application/zip)
2016-02-10 11:23 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews112 for mac-yosemite
(1.01 MB, application/zip)
2016-02-10 11:23 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews102 for mac-yosemite
(1.39 MB, application/zip)
2016-02-10 11:25 PST
,
Build Bot
no flags
Details
Patch
(574.98 KB, patch)
2016-02-10 11:32 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(575.16 KB, patch)
2016-02-10 11:38 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(574.82 KB, patch)
2016-02-10 11:53 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(10)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-02-09 09:58:12 PST
<
rdar://problem/24569358
>
Radar WebKit Bug Importer
Comment 2
2016-02-09 09:58:48 PST
<
rdar://problem/24569376
>
Chris Dumez
Comment 3
2016-02-09 10:00:53 PST
This should also impact the "constructor" properties on prototype objects (e.g. Event.prototype.constructor) as their value in a reference to the interface object: -
http://heycam.github.io/webidl/#interface-prototype-object
Chris Dumez
Comment 4
2016-02-09 22:19:59 PST
Created
attachment 270976
[details]
WIP Patch
WebKit Commit Bot
Comment 5
2016-02-09 22:21:25 PST
Attachment 270976
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/js/JSDOMConstructor.h:37: The parameter name "globalObject" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/bindings/js/JSDOMConstructor.h:69: The parameter name "globalObject" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/bindings/js/JSDOMConstructor.h:92: The parameter name "globalObject" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 3 in 55 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 6
2016-02-09 23:06:38 PST
Comment on
attachment 270976
[details]
WIP Patch
Attachment 270976
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/807987
Number of test failures exceeded the failure limit.
Build Bot
Comment 7
2016-02-09 23:06:42 PST
Created
attachment 270978
[details]
Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 8
2016-02-09 23:10:29 PST
Comment on
attachment 270976
[details]
WIP Patch
Attachment 270976
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/807994
Number of test failures exceeded the failure limit.
Build Bot
Comment 9
2016-02-09 23:10:33 PST
Created
attachment 270979
[details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 10
2016-02-09 23:17:35 PST
Comment on
attachment 270976
[details]
WIP Patch
Attachment 270976
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/807992
Number of test failures exceeded the failure limit.
Build Bot
Comment 11
2016-02-09 23:17:39 PST
Created
attachment 270980
[details]
Archive of layout-test-results from ews116 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-yosemite Platform: Mac OS X 10.10.5
Darin Adler
Comment 12
2016-02-10 09:02:26 PST
Comment on
attachment 270976
[details]
WIP Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270976&action=review
> Source/WebCore/bindings/js/JSDOMConstructor.h:37 > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject& globalObject);
The style checker is correct that there’s no need for the argument name “global object” here.
> Source/WebCore/bindings/js/JSDOMConstructor.h:69 > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject& globalObject);
Ditto.
> Source/WebCore/bindings/js/JSDOMConstructor.h:115 > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject&);
Ditto.
Chris Dumez
Comment 13
2016-02-10 09:03:22 PST
(In reply to
comment #12
)
> Comment on
attachment 270976
[details]
> WIP Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=270976&action=review
> > > Source/WebCore/bindings/js/JSDOMConstructor.h:37 > > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject& globalObject); > > The style checker is correct that there’s no need for the argument name > “global object” here. > > > Source/WebCore/bindings/js/JSDOMConstructor.h:69 > > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject& globalObject); > > Ditto. > > > Source/WebCore/bindings/js/JSDOMConstructor.h:115 > > + static JSC::JSValue prototypeForStructure(JSC::VM&, const JSDOMGlobalObject&); > > Ditto.
Yes yes, this was just a "Work In Progress" patch that I will polish because marking as r?
Darin Adler
Comment 14
2016-02-10 09:13:12 PST
No problem. Sometimes I review those by accident, sometimes intentionally. And sometimes people review mine. Sorry to waste your time replying to say something you were already planning to do!
Chris Dumez
Comment 15
2016-02-10 10:25:08 PST
Created
attachment 271003
[details]
WIP patch
Build Bot
Comment 16
2016-02-10 11:23:18 PST
Comment on
attachment 271003
[details]
WIP patch
Attachment 271003
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/810257
New failing tests: js/dom/global-constructors-attributes.html
Build Bot
Comment 17
2016-02-10 11:23:22 PST
Created
attachment 271009
[details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 18
2016-02-10 11:23:53 PST
Comment on
attachment 271003
[details]
WIP patch
Attachment 271003
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/810231
New failing tests: http/tests/security/cross-frame-access-put.html js/dom/global-constructors-attributes.html
Build Bot
Comment 19
2016-02-10 11:23:56 PST
Created
attachment 271010
[details]
Archive of layout-test-results from ews112 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 20
2016-02-10 11:25:49 PST
Comment on
attachment 271003
[details]
WIP patch
Attachment 271003
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/810283
New failing tests: http/tests/security/cross-frame-access-put.html js/dom/global-constructors-attributes.html
Build Bot
Comment 21
2016-02-10 11:25:53 PST
Created
attachment 271011
[details]
Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Chris Dumez
Comment 22
2016-02-10 11:32:22 PST
Created
attachment 271013
[details]
Patch
Chris Dumez
Comment 23
2016-02-10 11:38:01 PST
Created
attachment 271015
[details]
Patch
Chris Dumez
Comment 24
2016-02-10 11:53:00 PST
Created
attachment 271017
[details]
Patch
Geoffrey Garen
Comment 25
2016-02-10 13:36:04 PST
Comment on
attachment 271017
[details]
Patch r=me
Chris Dumez
Comment 26
2016-02-10 13:51:20 PST
Comment on
attachment 271017
[details]
Patch Clearing flags on attachment: 271017 Committed
r196392
: <
http://trac.webkit.org/changeset/196392
>
Chris Dumez
Comment 27
2016-02-10 13:51:25 PST
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 28
2016-03-10 08:48:01 PST
***
Bug 155293
has been marked as a duplicate of this bug. ***
Chris Dumez
Comment 29
2016-04-10 08:47:38 PDT
***
Bug 74193
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug