RESOLVED FIXED 169176
Align initEvent / initCustomEvent / initMessageEvent with the latest specification
https://bugs.webkit.org/show_bug.cgi?id=169176
Summary Align initEvent / initCustomEvent / initMessageEvent with the latest specific...
Chris Dumez
Reported 2017-03-04 16:06:01 PST
Attachments
WIP patch (3.39 KB, patch)
2017-03-04 16:07 PST, Chris Dumez
buildbot: commit-queue-
Archive of layout-test-results from ews102 for mac-elcapitan (818.46 KB, application/zip)
2017-03-04 17:20 PST, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (968.63 KB, application/zip)
2017-03-04 17:26 PST, Build Bot
no flags
Archive of layout-test-results from ews115 for mac-elcapitan (1.53 MB, application/zip)
2017-03-04 17:30 PST, Build Bot
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (16.33 MB, application/zip)
2017-03-04 17:39 PST, Build Bot
no flags
WIP Patch (267.90 KB, patch)
2017-03-04 19:23 PST, Chris Dumez
no flags
Patch (277.12 KB, patch)
2017-03-06 09:53 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2017-03-04 16:07:14 PST
Created attachment 303416 [details] WIP patch
Build Bot
Comment 2 2017-03-04 17:20:03 PST
Comment on attachment 303416 [details] WIP patch Attachment 303416 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3243428 New failing tests: imported/w3c/web-platform-tests/dom/interfaces.html fast/eventsource/eventsource-attribute-listeners.html fast/events/init-events.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https.html
Build Bot
Comment 3 2017-03-04 17:20:07 PST
Created attachment 303419 [details] Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4 2017-03-04 17:25:58 PST
Comment on attachment 303416 [details] WIP patch Attachment 303416 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3243436 New failing tests: imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https.html fast/eventsource/eventsource-attribute-listeners.html fast/events/init-events.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.html imported/w3c/web-platform-tests/dom/interfaces.html
Build Bot
Comment 5 2017-03-04 17:26:02 PST
Created attachment 303421 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6 2017-03-04 17:30:26 PST
Comment on attachment 303416 [details] WIP patch Attachment 303416 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3243434 New failing tests: imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https.html fast/events/init-events.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.html fast/eventsource/eventsource-attribute-listeners.html
Build Bot
Comment 7 2017-03-04 17:30:30 PST
Created attachment 303423 [details] Archive of layout-test-results from ews115 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 8 2017-03-04 17:39:23 PST
Comment on attachment 303416 [details] WIP patch Attachment 303416 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3243440 New failing tests: imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https.html fast/eventsource/eventsource-attribute-listeners.html fast/events/init-events.html imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.html imported/w3c/web-platform-tests/dom/interfaces.html
Build Bot
Comment 9 2017-03-04 17:39:27 PST
Created attachment 303424 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Chris Dumez
Comment 10 2017-03-04 19:23:35 PST
Created attachment 303433 [details] WIP Patch
Chris Dumez
Comment 11 2017-03-06 09:53:58 PST
Alex Christensen
Comment 12 2017-03-07 08:35:00 PST
Comment on attachment 303520 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=303520&action=review > LayoutTests/fast/eventsource/eventsource-attribute-listeners.html:39 > -evt.initMessageEvent("message", false, false, "hello", null, null, null, null); > +evt.initMessageEvent("message", false, false, "hello", null, null, null, []); What happens if you call this with null?
Chris Dumez
Comment 13 2017-03-07 08:36:20 PST
(In reply to comment #12) > Comment on attachment 303520 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=303520&action=review > > > LayoutTests/fast/eventsource/eventsource-attribute-listeners.html:39 > > -evt.initMessageEvent("message", false, false, "hello", null, null, null, null); > > +evt.initMessageEvent("message", false, false, "hello", null, null, null, []); > > What happens if you call this with null? It throws a TypeError as per WebIDL. This is consistent with Firefox as well. There is a slight backward compatibility risk here, as mentioned in the Changelog but we can always mark the parameter as nullable later if we see it breaks anything.
WebKit Commit Bot
Comment 14 2017-03-07 09:03:20 PST
Comment on attachment 303520 [details] Patch Clearing flags on attachment: 303520 Committed r213517: <http://trac.webkit.org/changeset/213517>
WebKit Commit Bot
Comment 15 2017-03-07 09:03:26 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.