forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r213517 - Align initEvent / initCustomEvent / initMessageEvent …
…with the latest specification https://bugs.webkit.org/show_bug.cgi?id=169176 Reviewed by Alex Christensen. LayoutTests/imported/w3c: Re-sync web-platform tests from upstream after: - web-platform-tests/wpt#5043 - web-platform-tests/wpt#5044 * web-platform-tests/dom/events/CustomEvent-expected.txt: * web-platform-tests/dom/events/CustomEvent.html: * web-platform-tests/dom/events/Event-initEvent-expected.txt: * web-platform-tests/dom/events/Event-initEvent.html: * web-platform-tests/dom/interfaces-expected.txt: * web-platform-tests/dom/interfaces.html: * web-platform-tests/html/dom/interfaces-expected.txt: * web-platform-tests/html/dom/interfaces.html: * web-platform-tests/html/dom/resources/interfaces.idl: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html. * web-platform-tests/html/dom/resources/untested-interfaces.idl: Added. * web-platform-tests/html/webappapis/scripting/events/messageevent-constructor-expected.txt: Removed. * web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.html: Removed. * web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https-expected.txt: * web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https.html: Source/WebCore: Align initEvent / initCustomEvent / initMessageEvent with the latest specification after: - whatwg/dom#417 - whatwg/html#2410 In particular, the following changes were made: - initEvent: The length property now properly returns 1 instead of 3 as only the first parameter is mandatory. We were already behaving correcting the the length property value was wrong because we forgot to drop a hack from the bindings generator. - initCustomEvent: Make all parameters except the first optional. Previously, all parameters were mandatory so this is safe. - initMessageEvent: Drop the custom code and mark the first parameter as mandatory. A side effect of dropping the custom code is that null is no longer considered as valid input for the last parameter. The parameter is of type sequence<> and the new behavior is consistent with the specification and Firefox. If it turns out to break existing content, I'll make the parameter nullable in a follow-up. No new tests, updated existing tests. * bindings/js/JSMessageEventCustom.cpp: * bindings/scripts/CodeGeneratorJS.pm: (GeneratePropertiesHashTable): * dom/CustomEvent.idl: * dom/MessageEvent.idl: LayoutTests: Updated existing tests to reflect behavior change. * fast/events/init-events-expected.txt: * fast/events/script-tests/init-events.js: * fast/eventsource/eventsource-attribute-listeners.html: git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.16@213825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
carlosgc@webkit.org
committed
Mar 13, 2017
1 parent
7b05927
commit 7f1d18d
Showing
24 changed files
with
3,415 additions
and
3,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
LayoutTests/imported/w3c/web-platform-tests/dom/events/CustomEvent-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
|
||
PASS CustomEvent | ||
PASS CustomEvent dispatching. | ||
PASS First parameter to initCustomEvent should be mandatory. | ||
PASS initCustomEvent's default parameter values. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.