Changeset 203848 in webkit
- Timestamp:
- Jul 28, 2016 4:15:07 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203845 r203848 1 2016-07-28 Chris Dumez <cdumez@apple.com> 2 3 Parameters to Event.initEvent() should be mandatory 4 https://bugs.webkit.org/show_bug.cgi?id=160320 5 6 Reviewed by Darin Adler. 7 8 Update existing tests to make sure they call initEvent() will all 3 9 parameters. 10 11 * fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml: 12 * fast/forms/form-submission-create-crash.xhtml: 13 * js/arity-mismatch-at-vmentry.html: 14 1 15 2016-07-28 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/LayoutTests/fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml
r185745 r203848 20 20 document.addEventListener("beforeload", setText, true); 21 21 event = document.createEvent("Event"); 22 event.initEvent("beforeload", false );22 event.initEvent("beforeload", false, false); 23 23 document.documentElement.dispatchEvent(event); 24 24 </script> -
trunk/LayoutTests/fast/forms/form-submission-create-crash.xhtml
r121008 r203848 15 15 runTest = function() { 16 16 event = document.createEvent("MouseEvent"); 17 event.initEvent("click" );17 event.initEvent("click", false, false); 18 18 textNode.dispatchEvent(event); 19 19 if (window.testRunner) -
trunk/LayoutTests/imported/w3c/ChangeLog
r203846 r203848 1 2016-07-28 Chris Dumez <cdumez@apple.com> 2 3 Parameters to Event.initEvent() should be mandatory 4 https://bugs.webkit.org/show_bug.cgi?id=160320 5 6 Reviewed by Darin Adler. 7 8 Rebaseline W3C tests now that more checks are passing. 9 10 * web-platform-tests/dom/interfaces-expected.txt: 11 * web-platform-tests/html/dom/interfaces-expected.txt: 12 1 13 2016-07-28 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt
r203745 r203848 27 27 PASS Event interface: attribute defaultPrevented 28 28 PASS Event interface: attribute timeStamp 29 FAIL Event interface: operation initEvent(DOMString,boolean,boolean) assert_equals: property has wrong .length expected 3 but got 0 29 PASS Event interface: operation initEvent(DOMString,boolean,boolean) 30 30 PASS Event must be primary interface of document.createEvent("Event") 31 31 PASS Stringification of document.createEvent("Event") … … 47 47 PASS Event interface: document.createEvent("Event") must inherit property "timeStamp" with the proper type (15) 48 48 PASS Event interface: document.createEvent("Event") must inherit property "initEvent" with the proper type (16) 49 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on document.createEvent("Event") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 50 fn.apply(obj, args); 51 }" did not throw 49 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on document.createEvent("Event") with too few arguments must throw TypeError 52 50 PASS Event must be primary interface of new Event("foo") 53 51 PASS Stringification of new Event("foo") … … 69 67 PASS Event interface: new Event("foo") must inherit property "timeStamp" with the proper type (15) 70 68 PASS Event interface: new Event("foo") must inherit property "initEvent" with the proper type (16) 71 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new Event("foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 72 fn.apply(obj, args); 73 }" did not throw 69 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new Event("foo") with too few arguments must throw TypeError 74 70 PASS CustomEvent interface: existence and properties of interface object 75 71 PASS CustomEvent interface object length … … 101 97 PASS Event interface: new CustomEvent("foo") must inherit property "timeStamp" with the proper type (15) 102 98 PASS Event interface: new CustomEvent("foo") must inherit property "initEvent" with the proper type (16) 103 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new CustomEvent("foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 104 fn.apply(obj, args); 105 }" did not throw 99 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new CustomEvent("foo") with too few arguments must throw TypeError 106 100 PASS EventTarget interface: existence and properties of interface object 107 101 PASS EventTarget interface object length -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r203846 r203848 2369 2369 PASS Event interface: new TrackEvent("addtrack", {track:document.createElement("track").track}) must inherit property "timeStamp" with the proper type (15) 2370 2370 PASS Event interface: new TrackEvent("addtrack", {track:document.createElement("track").track}) must inherit property "initEvent" with the proper type (16) 2371 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 2372 fn.apply(obj, args); 2373 }" did not throw 2371 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError 2374 2372 PASS HTMLMapElement interface: existence and properties of interface object 2375 2373 PASS HTMLMapElement interface object length … … 5508 5506 PASS Event interface: new PopStateEvent("popstate", { data: {} }) must inherit property "timeStamp" with the proper type (15) 5509 5507 PASS Event interface: new PopStateEvent("popstate", { data: {} }) must inherit property "initEvent" with the proper type (16) 5510 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new PopStateEvent("popstate", { data: {} }) with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 5511 fn.apply(obj, args); 5512 }" did not throw 5508 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new PopStateEvent("popstate", { data: {} }) with too few arguments must throw TypeError 5513 5509 PASS HashChangeEvent interface: existence and properties of interface object 5514 5510 PASS HashChangeEvent interface object length … … 5828 5824 PASS Event interface: new CloseEvent("close") must inherit property "timeStamp" with the proper type (15) 5829 5825 PASS Event interface: new CloseEvent("close") must inherit property "initEvent" with the proper type (16) 5830 FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new CloseEvent("close") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () { 5831 fn.apply(obj, args); 5832 }" did not throw 5826 PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new CloseEvent("close") with too few arguments must throw TypeError 5833 5827 PASS MessageChannel interface: existence and properties of interface object 5834 5828 PASS MessageChannel interface object length -
trunk/LayoutTests/js/arity-mismatch-at-vmentry.html
r173178 r203848 30 30 var dispatch_fn = function() { 31 31 evt = document.createEvent("Event"); 32 evt.initEvent("readystatechange" );32 evt.initEvent("readystatechange", false, false); 33 33 document.getElementById("span").dispatchEvent(evt); 34 34 } -
trunk/Source/WebCore/ChangeLog
r203847 r203848 1 2016-07-28 Chris Dumez <cdumez@apple.com> 2 3 Parameters to Event.initEvent() should be mandatory 4 https://bugs.webkit.org/show_bug.cgi?id=160320 5 6 Reviewed by Darin Adler. 7 8 Parameters to Event.initEvent() should be mandatory: 9 - https://dom.spec.whatwg.org/#interface-event 10 11 Firefox agrees with the specification. Chrome does not. 12 13 No new tests, rebaselined existing tests. 14 15 * dom/Event.idl: 16 1 17 2016-07-28 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/Source/WebCore/dom/Event.idl
r202953 r203848 67 67 void preventDefault(); 68 68 69 // FIXME: Using "undefined" as default parameter value is wrong. 70 [ObjCLegacyUnnamedParameters] void initEvent(optional DOMString eventTypeArg = "undefined", 71 optional boolean canBubbleArg = false, 72 optional boolean cancelableArg = false); 69 [ObjCLegacyUnnamedParameters] void initEvent(DOMString eventTypeArg, boolean canBubbleArg, boolean cancelableArg); 73 70 74 71 // DOM Level 3 Additions. -
trunk/Source/WebInspectorUI/ChangeLog
r203845 r203848 1 2016-07-28 Chris Dumez <cdumez@apple.com> 2 3 Parameters to Event.initEvent() should be mandatory 4 https://bugs.webkit.org/show_bug.cgi?id=160320 5 6 Reviewed by Darin Adler. 7 8 Update WebInspector accordingly. 9 10 * UserInterface/Models/NativeFunctionParameters.js: 11 1 12 2016-07-28 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js
r203845 r203848 814 814 815 815 Event: { 816 initEvent: " [type], [canBubble], [cancelable]",816 initEvent: "type, canBubble, cancelable", 817 817 __proto__: null, 818 818 },
Note: See TracChangeset
for help on using the changeset viewer.