Changeset 280703 in webkit
- Timestamp:
- Aug 5, 2021 1:56:52 PM (12 months ago)
- Location:
- trunk
- Files:
-
- 4 added
- 34 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events.html (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault.html (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input.html (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-select.html (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault.html (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
-
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events-expected.txt (added)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault-expected.txt (added)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input-expected.txt (added)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault-expected.txt (added)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
-
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (9 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/GlobalEventHandlers.idl (modified) (1 diff)
-
Source/WebCore/html/HTMLAttributeNames.in (modified) (1 diff)
-
Source/WebCore/html/HTMLDialogElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLDialogElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLElement.cpp (modified) (1 diff)
-
Source/WebCore/page/EventHandler.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280691 r280703 1 2021-08-05 Tim Nguyen <ntim@apple.com> 2 3 Implement support for <dialog> element cancel event 4 https://bugs.webkit.org/show_bug.cgi?id=227534 5 6 Reviewed by Chris Dumez. 7 8 This makes <dialog> emit a cancel event then close when the escape key is pressed. 9 10 Updated relevant WPT: 11 - <dialog> cancel event WPTs: used send_keys instead of test_driver.Actions() (which are unsupported by WebKit test runner) 12 - oncancel now is recognized 13 14 Failing WPT: 15 - dialog-cancel-with-input.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <input> to get focus 16 - dialog-cancel-with-select.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <select> to get focus 17 - dialog-keydown-preventDefault.html: current implementation does not prevent canceling from happening when keydown event has preventDefault() 18 19 * platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 20 * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 21 * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 22 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events-expected.txt: Added. 23 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault-expected.txt: Added. 24 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input-expected.txt: Added. 25 * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault-expected.txt: Added. 26 * platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 27 * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 28 * platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 29 * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 30 * platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 31 * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 32 1 33 2021-08-04 Robert Jenner <Jenner@apple.com> 2 34 -
trunk/LayoutTests/imported/w3c/ChangeLog
r280688 r280703 1 2021-08-05 Tim Nguyen <ntim@apple.com> 2 3 Implement support for <dialog> element cancel event 4 https://bugs.webkit.org/show_bug.cgi?id=227534 5 6 Reviewed by Chris Dumez. 7 8 This makes <dialog> emit a cancel event then close when the escape key is pressed. 9 10 Updated relevant WPT: 11 - <dialog> cancel event WPTs: used send_keys instead of test_driver.Actions() (which are unsupported by WebKit test runner) 12 - oncancel now is recognized 13 14 Failing WPT: 15 - dialog-cancel-with-input.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <input> to get focus 16 - dialog-cancel-with-select.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <select> to get focus 17 - dialog-keydown-preventDefault.html: current implementation does not prevent canceling from happening when keydown event has preventDefault() 18 19 * web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt: 20 * web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt: 21 * web-platform-tests/html/dom/idlharness.https-expected.txt: 22 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events-expected.txt: 23 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events.html: 24 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault-expected.txt: 25 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault.html: 26 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input-expected.txt: 27 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input.html: 28 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-select.html: 29 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault-expected.txt: 30 * web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault.html: 31 * web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt: 32 * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: 33 * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt: 34 * web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 35 1 36 2021-08-05 Tim Nguyen <ntim@apple.com> 2 37 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt
r279406 r280703 19 19 PASS A SecurityError exception must be thrown when window.onbeforeunload is accessed from a different origin. 20 20 PASS A SecurityError exception must be thrown when window.onblur is accessed from a different origin. 21 FAIL A SecurityError exception must be thrown when window.oncancel is accessed from a different origin. assert_true: window.oncancel should exist. expected true got false 21 PASS A SecurityError exception must be thrown when window.oncancel is accessed from a different origin. 22 22 PASS A SecurityError exception must be thrown when window.oncanplay is accessed from a different origin. 23 23 PASS A SecurityError exception must be thrown when window.oncanplaythrough is accessed from a different origin. -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt
r279406 r280703 81 81 PASS Window attribute: onbeforeunload 82 82 PASS Window attribute: onblur 83 FAIL Window attribute: oncancel assert_true: oncancel in window expected true got false 83 PASS Window attribute: oncancel 84 84 PASS Window attribute: oncanplay 85 85 PASS Window attribute: oncanplaythrough -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r279406 r280703 130 130 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 131 131 PASS HTMLElement interface: attribute onblur 132 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 132 PASS HTMLElement interface: attribute oncancel 133 133 PASS HTMLElement interface: attribute oncanplay 134 134 PASS HTMLElement interface: attribute oncanplaythrough … … 220 220 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 221 221 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 222 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 222 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 223 223 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 224 224 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4189 4189 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4190 4190 PASS Window interface: attribute onblur 4191 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4191 PASS Window interface: attribute oncancel 4192 4192 PASS Window interface: attribute oncanplay 4193 4193 PASS Window interface: attribute oncanplaythrough … … 4333 4333 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4334 4334 PASS Window interface: window must inherit property "onblur" with the proper type 4335 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4335 PASS Window interface: window must inherit property "oncancel" with the proper type 4336 4336 PASS Window interface: window must inherit property "oncanplay" with the proper type 4337 4337 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5034 5034 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5035 5035 PASS SVGElement interface: attribute onblur 5036 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5036 PASS SVGElement interface: attribute oncancel 5037 5037 PASS SVGElement interface: attribute oncanplay 5038 5038 PASS SVGElement interface: attribute oncanplaythrough … … 5176 5176 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5177 5177 PASS Document interface: attribute onblur 5178 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5178 PASS Document interface: attribute oncancel 5179 5179 PASS Document interface: attribute oncanplay 5180 5180 PASS Document interface: attribute oncanplaythrough … … 5297 5297 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5298 5298 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5299 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5299 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5300 5300 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5301 5301 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5418 5418 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5419 5419 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5420 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5420 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5421 5421 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5422 5422 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5539 5539 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5540 5540 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5541 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5541 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5542 5542 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5543 5543 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events-expected.txt
r280688 r280703 1 CONSOLE MESSAGE: ReferenceError: Can't find variable: action2 1 Test cancel event is fired when the dialog is closed by user interaction 3 2 4 Hello World5 3 4 PASS Test cancel event is fired when the dialog is closed by user interaction 6 5 7 FAIL Test cancel event is fired when the dialog is closed by user interaction ReferenceError: Can't find variable: action8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-events.html
r280688 r280703 7 7 <script src="/resources/testdriver.js"></script> 8 8 <script src="/resources/testdriver-vendor.js"></script> 9 < script src="/resources/testdriver-actions.js"></script>9 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=227534"> 10 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1322947"> 11 11 </head> … … 40 40 41 41 dialog.showModal(); 42 43 const escKey = "\uE00C"; 44 new test_driver.Actions() 45 .keyDown(escKey) 46 .keyUp(escKey) 47 .send(); 42 test_driver.send_keys(document.documentElement, "\uE00C"); // ESC key 48 43 </script> 49 44 </body> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault-expected.txt
r280688 r280703 1 CONSOLE MESSAGE: ReferenceError: Can't find variable: action2 1 Test cancel event with preventDefault on cancel event for dialog element 3 2 … … 5 4 6 5 7 FAIL Test cancel event with preventDefault on cancel event for dialog element ReferenceError: Can't find variable: action 6 PASS Test cancel event with preventDefault on cancel event for dialog element 8 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-preventDefault.html
r280688 r280703 7 7 <script src="/resources/testdriver.js"></script> 8 8 <script src="/resources/testdriver-vendor.js"></script> 9 < script src="/resources/testdriver-actions.js"></script>9 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=227534"> 10 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1322947"> 11 11 </head> … … 40 40 41 41 dialog.showModal(); 42 const escKey = "\uE00C"; 43 new test_driver.Actions() 44 .keyDown(escKey) 45 .keyUp(escKey) 46 .send(); 42 test_driver.send_keys(document.documentElement, "\uE00C"); // ESC key 47 43 </script> 48 44 </body> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input-expected.txt
r280688 r280703 1 CONSOLE MESSAGE: ReferenceError: Can't find variable: action1 CONSOLE MESSAGE: Error: assert_true: input element should be focused expected true got false 2 2 Test dialog modal is closed by escape key with input focused 3 3 4 Hello World5 4 6 5 7 FAIL Test dialog modal is closed by escape key with input focused ReferenceError: Can't find variable: action6 FAIL Test dialog modal is closed by escape key with input focused Error: assert_true: input element should be focused expected true got false 8 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-input.html
r280688 r280703 7 7 <script src="/resources/testdriver.js"></script> 8 8 <script src="/resources/testdriver-vendor.js"></script> 9 < script src="/resources/testdriver-actions.js"></script>9 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=227534"> 10 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1322947"> 11 11 </head> … … 24 24 25 25 const triggerEscKey = () => { 26 const escKey = "\uE00C"; 27 new test_driver.Actions() 28 .keyDown(escKey) 29 .keyUp(escKey) 30 .send(); 26 test_driver.send_keys(document.documentElement, "\uE00C"); // ESC key 31 27 }; 32 28 … … 50 46 dialog.addEventListener("close", function() { 51 47 assert_false(dialog.open, "dialog closed"); 52 step_timeout(function() {48 step_timeout(function() { 53 49 runTestCancelWhenInputFocused(); 54 50 }, 0); -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-cancel-with-select.html
r280688 r280703 7 7 <script src="/resources/testdriver.js"></script> 8 8 <script src="/resources/testdriver-vendor.js"></script> 9 < script src="/resources/testdriver-actions.js"></script>9 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=227534"> 10 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1322947"> 11 11 </head> … … 32 32 assert_true(select == document.activeElement, "select element should be focused"); 33 33 34 const escKey = "\uE00C"; 35 new test_driver.Actions() 36 .keyDown(escKey) 37 .keyUp(escKey) 38 .send(); 34 test_driver.send_keys(document.documentElement, "\uE00C"); // ESC key 39 35 </script> 40 36 </body> 41 37 </html> 42 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault-expected.txt
r280688 r280703 1 CONSOLE MESSAGE: ReferenceError: Can't find variable: action2 1 Test cancel event with preventDefault on keydown event for dialog element 3 2 4 Hello World5 3 4 Harness Error (TIMEOUT), message = null 6 5 7 FAIL Test cancel event with preventDefault on keydown event for dialog element ReferenceError: Can't find variable: action 6 NOTRUN Test cancel event with preventDefault on keydown event for dialog element 8 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-keydown-preventDefault.html
r280688 r280703 7 7 <script src="/resources/testdriver.js"></script> 8 8 <script src="/resources/testdriver-vendor.js"></script> 9 < script src="/resources/testdriver-actions.js"></script>9 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=227534"> 10 10 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1322947"> 11 11 </head> … … 40 40 }); 41 41 dialog.showModal(); 42 const escKey = "\uE00C"; 43 new test_driver.Actions() 44 .keyDown(escKey) 45 .keyUp(escKey) 46 .send(); 42 test_driver.send_keys(document.documentElement, "\uE00C"); // ESC key 47 43 </script> 48 44 </body> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt
r280310 r280703 15 15 PASS onblur: the content attribute must execute when an event is dispatched 16 16 PASS onblur: dispatching an Event at a <meta> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: Window has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a Window instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: the content attribute must execute when an event is dispatched assert_true: Dispatching an event must run the code expected true got undefined17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: the content attribute must execute when an event is dispatched 21 21 PASS oncancel: dispatching an Event at a <meta> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt
r280310 r280703 24 24 PASS not shadowed abort (document.body) 25 25 FAIL not shadowed auxclick (document.body) assert_equals: alternative body should reflect expected (object) null but got (undefined) undefined 26 FAIL not shadowed cancel (document.body) assert_equals: alternative body should reflect expected (object) null but got (undefined) undefined 26 PASS not shadowed cancel (document.body) 27 27 PASS not shadowed canplay (document.body) 28 28 PASS not shadowed canplaythrough (document.body) … … 131 131 PASS not shadowed abort (document.createElement("body")) 132 132 FAIL not shadowed auxclick (document.createElement("body")) assert_equals: body should reflect expected (object) null but got (undefined) undefined 133 FAIL not shadowed cancel (document.createElement("body")) assert_equals: body should reflect expected (object) null but got (undefined) undefined 133 PASS not shadowed cancel (document.createElement("body")) 134 134 PASS not shadowed canplay (document.createElement("body")) 135 135 PASS not shadowed canplaythrough (document.createElement("body")) … … 238 238 PASS not shadowed abort (window) 239 239 FAIL not shadowed auxclick (window) assert_equals: body should reflect expected (object) null but got (undefined) undefined 240 FAIL not shadowed cancel (window) assert_equals: body should reflect expected (object) null but got (undefined) undefined 240 PASS not shadowed cancel (window) 241 241 PASS not shadowed canplay (window) 242 242 PASS not shadowed canplaythrough (window) -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt
r280310 r280703 46 46 PASS abort is unaffected on a windowless body 47 47 FAIL auxclick is unaffected on a windowless body assert_equals: expected (object) null but got (undefined) undefined 48 FAIL cancel is unaffected on a windowless body assert_equals: expected (object) null but got (undefined) undefined 48 PASS cancel is unaffected on a windowless body 49 49 PASS canplay is unaffected on a windowless body 50 50 PASS canplaythrough is unaffected on a windowless body … … 153 153 PASS abort is unaffected on a windowless frameset 154 154 FAIL auxclick is unaffected on a windowless frameset assert_equals: expected (object) null but got (undefined) undefined 155 FAIL cancel is unaffected on a windowless frameset assert_equals: expected (object) null but got (undefined) undefined 155 PASS cancel is unaffected on a windowless frameset 156 156 PASS canplay is unaffected on a windowless frameset 157 157 PASS canplaythrough is unaffected on a windowless frameset -
trunk/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r279406 r280703 15 15 PASS onblur: dynamic changes on the attribute 16 16 PASS onblur: dispatching an Event at a <math> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: dynamic changes on the attribute assert_equals: The oncancel property must be null (no attribute) expected (object) null but got (undefined) undefined 21 FAIL oncancel: dispatching an Event at a <math> element must trigger element.oncancel assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: dynamic changes on the attribute 21 PASS oncancel: dispatching an Event at a <math> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 23 23 PASS oncanplay: the default value must be null -
trunk/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r280678 r280703 15 15 PASS onblur: dynamic changes on the attribute 16 16 PASS onblur: dispatching an Event at a <math> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: dynamic changes on the attribute assert_equals: The oncancel property must be null (no attribute) expected (object) null but got (undefined) undefined 21 FAIL oncancel: dispatching an Event at a <math> element must trigger element.oncancel assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: dynamic changes on the attribute 21 PASS oncancel: dispatching an Event at a <math> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 23 23 PASS oncanplay: the default value must be null -
trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r280678 r280703 264 264 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 265 265 PASS HTMLElement interface: attribute onblur 266 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 266 PASS HTMLElement interface: attribute oncancel 267 267 PASS HTMLElement interface: attribute oncanplay 268 268 PASS HTMLElement interface: attribute oncanplaythrough … … 359 359 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 360 360 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 361 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 361 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 362 362 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 363 363 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4404 4404 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4405 4405 PASS Window interface: attribute onblur 4406 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4406 PASS Window interface: attribute oncancel 4407 4407 PASS Window interface: attribute oncanplay 4408 4408 PASS Window interface: attribute oncanplaythrough … … 4554 4554 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4555 4555 PASS Window interface: window must inherit property "onblur" with the proper type 4556 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4556 PASS Window interface: window must inherit property "oncancel" with the proper type 4557 4557 PASS Window interface: window must inherit property "oncanplay" with the proper type 4558 4558 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5269 5269 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5270 5270 PASS SVGElement interface: attribute onblur 5271 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5271 PASS SVGElement interface: attribute oncancel 5272 5272 PASS SVGElement interface: attribute oncanplay 5273 5273 PASS SVGElement interface: attribute oncanplaythrough … … 5403 5403 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5404 5404 PASS Document interface: attribute onblur 5405 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5405 PASS Document interface: attribute oncancel 5406 5406 PASS Document interface: attribute oncanplay 5407 5407 PASS Document interface: attribute oncanplaythrough … … 5528 5528 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5529 5529 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5530 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5530 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5531 5531 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5532 5532 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5653 5653 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5654 5654 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5655 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5655 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5656 5656 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5657 5657 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5778 5778 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5779 5779 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5780 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5780 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5781 5781 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5782 5782 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r280504 r280703 264 264 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 265 265 PASS HTMLElement interface: attribute onblur 266 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 266 PASS HTMLElement interface: attribute oncancel 267 267 PASS HTMLElement interface: attribute oncanplay 268 268 PASS HTMLElement interface: attribute oncanplaythrough … … 359 359 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 360 360 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 361 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 361 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 362 362 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 363 363 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4394 4394 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4395 4395 PASS Window interface: attribute onblur 4396 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4396 PASS Window interface: attribute oncancel 4397 4397 PASS Window interface: attribute oncanplay 4398 4398 PASS Window interface: attribute oncanplaythrough … … 4544 4544 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4545 4545 PASS Window interface: window must inherit property "onblur" with the proper type 4546 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4546 PASS Window interface: window must inherit property "oncancel" with the proper type 4547 4547 PASS Window interface: window must inherit property "oncanplay" with the proper type 4548 4548 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5259 5259 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5260 5260 PASS SVGElement interface: attribute onblur 5261 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5261 PASS SVGElement interface: attribute oncancel 5262 5262 PASS SVGElement interface: attribute oncanplay 5263 5263 PASS SVGElement interface: attribute oncanplaythrough … … 5393 5393 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5394 5394 PASS Document interface: attribute onblur 5395 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5395 PASS Document interface: attribute oncancel 5396 5396 PASS Document interface: attribute oncanplay 5397 5397 PASS Document interface: attribute oncanplaythrough … … 5518 5518 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5519 5519 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5520 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5520 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5521 5521 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5522 5522 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5643 5643 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5644 5644 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5645 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5645 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5646 5646 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5647 5647 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5768 5768 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5769 5769 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5770 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5770 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5771 5771 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5772 5772 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r280310 r280703 15 15 PASS onblur: dynamic changes on the attribute 16 16 PASS onblur: dispatching an Event at a <math> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: dynamic changes on the attribute assert_equals: The oncancel property must be null (no attribute) expected (object) null but got (undefined) undefined 21 FAIL oncancel: dispatching an Event at a <math> element must trigger element.oncancel assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: dynamic changes on the attribute 21 PASS oncancel: dispatching an Event at a <math> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 23 23 PASS oncanplay: the default value must be null -
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r280504 r280703 264 264 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 265 265 PASS HTMLElement interface: attribute onblur 266 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 266 PASS HTMLElement interface: attribute oncancel 267 267 PASS HTMLElement interface: attribute oncanplay 268 268 PASS HTMLElement interface: attribute oncanplaythrough … … 359 359 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 360 360 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 361 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 361 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 362 362 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 363 363 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4404 4404 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4405 4405 PASS Window interface: attribute onblur 4406 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4406 PASS Window interface: attribute oncancel 4407 4407 PASS Window interface: attribute oncanplay 4408 4408 PASS Window interface: attribute oncanplaythrough … … 4554 4554 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4555 4555 PASS Window interface: window must inherit property "onblur" with the proper type 4556 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4556 PASS Window interface: window must inherit property "oncancel" with the proper type 4557 4557 PASS Window interface: window must inherit property "oncanplay" with the proper type 4558 4558 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5269 5269 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5270 5270 PASS SVGElement interface: attribute onblur 5271 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5271 PASS SVGElement interface: attribute oncancel 5272 5272 PASS SVGElement interface: attribute oncanplay 5273 5273 PASS SVGElement interface: attribute oncanplaythrough … … 5403 5403 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5404 5404 PASS Document interface: attribute onblur 5405 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5405 PASS Document interface: attribute oncancel 5406 5406 PASS Document interface: attribute oncanplay 5407 5407 PASS Document interface: attribute oncanplaythrough … … 5528 5528 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5529 5529 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5530 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5530 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5531 5531 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5532 5532 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5653 5653 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5654 5654 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5655 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5655 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5656 5656 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5657 5657 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5778 5778 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5779 5779 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5780 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5780 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5781 5781 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5782 5782 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r280310 r280703 15 15 PASS onblur: dynamic changes on the attribute 16 16 PASS onblur: dispatching an Event at a <math> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: dynamic changes on the attribute assert_equals: The oncancel property must be null (no attribute) expected (object) null but got (undefined) undefined 21 FAIL oncancel: dispatching an Event at a <math> element must trigger element.oncancel assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: dynamic changes on the attribute 21 PASS oncancel: dispatching an Event at a <math> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 23 23 PASS oncanplay: the default value must be null -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r280504 r280703 264 264 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 265 265 PASS HTMLElement interface: attribute onblur 266 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 266 PASS HTMLElement interface: attribute oncancel 267 267 PASS HTMLElement interface: attribute oncanplay 268 268 PASS HTMLElement interface: attribute oncanplaythrough … … 359 359 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 360 360 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 361 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 361 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 362 362 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 363 363 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4404 4404 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4405 4405 PASS Window interface: attribute onblur 4406 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4406 PASS Window interface: attribute oncancel 4407 4407 PASS Window interface: attribute oncanplay 4408 4408 PASS Window interface: attribute oncanplaythrough … … 4554 4554 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4555 4555 PASS Window interface: window must inherit property "onblur" with the proper type 4556 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4556 PASS Window interface: window must inherit property "oncancel" with the proper type 4557 4557 PASS Window interface: window must inherit property "oncanplay" with the proper type 4558 4558 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5269 5269 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5270 5270 PASS SVGElement interface: attribute onblur 5271 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5271 PASS SVGElement interface: attribute oncancel 5272 5272 PASS SVGElement interface: attribute oncanplay 5273 5273 PASS SVGElement interface: attribute oncanplaythrough … … 5403 5403 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5404 5404 PASS Document interface: attribute onblur 5405 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5405 PASS Document interface: attribute oncancel 5406 5406 PASS Document interface: attribute oncanplay 5407 5407 PASS Document interface: attribute oncanplaythrough … … 5528 5528 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5529 5529 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5530 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5530 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5531 5531 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5532 5532 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5653 5653 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5654 5654 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5655 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5655 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5656 5656 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5657 5657 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5778 5778 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5779 5779 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5780 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5780 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5781 5781 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5782 5782 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r280310 r280703 15 15 PASS onblur: dynamic changes on the attribute 16 16 PASS onblur: dispatching an Event at a <math> element must trigger element.onblur 17 FAIL oncancel: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "oncancel" expected true got false 18 FAIL oncancel: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 19 FAIL oncancel: the content attribute must be compiled into a function as the corresponding property assert_equals: The oncancel property must be a function expected "function" but got "undefined" 20 FAIL oncancel: dynamic changes on the attribute assert_equals: The oncancel property must be null (no attribute) expected (object) null but got (undefined) undefined 21 FAIL oncancel: dispatching an Event at a <math> element must trigger element.oncancel assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 17 PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 18 PASS oncancel: the default value must be null 19 PASS oncancel: the content attribute must be compiled into a function as the corresponding property 20 PASS oncancel: dynamic changes on the attribute 21 PASS oncancel: dispatching an Event at a <math> element must trigger element.oncancel 22 22 PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 23 23 PASS oncanplay: the default value must be null -
trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r280678 r280703 264 264 FAIL HTMLElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 265 265 PASS HTMLElement interface: attribute onblur 266 FAIL HTMLElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 266 PASS HTMLElement interface: attribute oncancel 267 267 PASS HTMLElement interface: attribute oncanplay 268 268 PASS HTMLElement interface: attribute oncanplaythrough … … 359 359 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 360 360 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onblur" with the proper type 361 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 361 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type 362 362 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplay" with the proper type 363 363 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oncanplaythrough" with the proper type … … 4404 4404 FAIL Window interface: attribute onauxclick assert_own_property: The global object must have a property "onauxclick" expected property "onauxclick" missing 4405 4405 PASS Window interface: attribute onblur 4406 FAIL Window interface: attribute oncancel assert_own_property: The global object must have a property "oncancel" expected property "oncancel" missing 4406 PASS Window interface: attribute oncancel 4407 4407 PASS Window interface: attribute oncanplay 4408 4408 PASS Window interface: attribute oncanplaythrough … … 4554 4554 FAIL Window interface: window must inherit property "onauxclick" with the proper type assert_own_property: expected property "onauxclick" missing 4555 4555 PASS Window interface: window must inherit property "onblur" with the proper type 4556 FAIL Window interface: window must inherit property "oncancel" with the proper type assert_own_property: expected property "oncancel" missing 4556 PASS Window interface: window must inherit property "oncancel" with the proper type 4557 4557 PASS Window interface: window must inherit property "oncanplay" with the proper type 4558 4558 PASS Window interface: window must inherit property "oncanplaythrough" with the proper type … … 5269 5269 FAIL SVGElement interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5270 5270 PASS SVGElement interface: attribute onblur 5271 FAIL SVGElement interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5271 PASS SVGElement interface: attribute oncancel 5272 5272 PASS SVGElement interface: attribute oncanplay 5273 5273 PASS SVGElement interface: attribute oncanplaythrough … … 5403 5403 FAIL Document interface: attribute onauxclick assert_true: The prototype object must have a property "onauxclick" expected true got false 5404 5404 PASS Document interface: attribute onblur 5405 FAIL Document interface: attribute oncancel assert_true: The prototype object must have a property "oncancel" expected true got false 5405 PASS Document interface: attribute oncancel 5406 5406 PASS Document interface: attribute oncanplay 5407 5407 PASS Document interface: attribute oncanplaythrough … … 5528 5528 FAIL Document interface: iframe.contentDocument must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5529 5529 PASS Document interface: iframe.contentDocument must inherit property "onblur" with the proper type 5530 FAIL Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5530 PASS Document interface: iframe.contentDocument must inherit property "oncancel" with the proper type 5531 5531 PASS Document interface: iframe.contentDocument must inherit property "oncanplay" with the proper type 5532 5532 PASS Document interface: iframe.contentDocument must inherit property "oncanplaythrough" with the proper type … … 5653 5653 FAIL Document interface: new Document() must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" not found in prototype chain 5654 5654 PASS Document interface: new Document() must inherit property "onblur" with the proper type 5655 FAIL Document interface: new Document() must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" not found in prototype chain 5655 PASS Document interface: new Document() must inherit property "oncancel" with the proper type 5656 5656 PASS Document interface: new Document() must inherit property "oncanplay" with the proper type 5657 5657 PASS Document interface: new Document() must inherit property "oncanplaythrough" with the proper type … … 5778 5778 FAIL Document interface: documentWithHandlers must inherit property "onauxclick" with the proper type assert_inherits: property "onauxclick" found on object expected in prototype chain 5779 5779 PASS Document interface: documentWithHandlers must inherit property "onblur" with the proper type 5780 FAIL Document interface: documentWithHandlers must inherit property "oncancel" with the proper type assert_inherits: property "oncancel" found on object expected in prototype chain 5780 PASS Document interface: documentWithHandlers must inherit property "oncancel" with the proper type 5781 5781 PASS Document interface: documentWithHandlers must inherit property "oncanplay" with the proper type 5782 5782 PASS Document interface: documentWithHandlers must inherit property "oncanplaythrough" with the proper type -
trunk/Source/WebCore/ChangeLog
r280702 r280703 1 2021-08-05 Tim Nguyen <ntim@apple.com> 2 3 Implement support for <dialog> element cancel event 4 https://bugs.webkit.org/show_bug.cgi?id=227534 5 6 Reviewed by Chris Dumez. 7 8 This makes <dialog> emit a cancel event then close when the escape key is pressed. 9 10 Updated relevant WPT: 11 - <dialog> cancel event WPTs: used send_keys instead of test_driver.Actions() (which are unsupported by WebKit test runner) 12 - oncancel now is recognized 13 14 Failing WPT: 15 - dialog-cancel-with-input.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <input> to get focus 16 - dialog-cancel-with-select.html: needs <dialog> focusing steps (webkit.org/b/227537) to be implemented for <select> to get focus 17 - dialog-keydown-preventDefault.html: current implementation does not prevent canceling from happening when keydown event has preventDefault() 18 19 * dom/GlobalEventHandlers.idl: 20 * html/HTMLAttributeNames.in: 21 * html/HTMLDialogElement.cpp: 22 (WebCore::HTMLDialogElement::cancel): 23 * html/HTMLDialogElement.h: 24 * html/HTMLElement.cpp: 25 (WebCore::HTMLElement::createEventHandlerNameMap): 26 * page/EventHandler.cpp: 27 (WebCore::EventHandler::internalKeyEvent): 28 1 29 2021-08-05 Eric Carlson <eric.carlson@apple.com> 2 30 -
trunk/Source/WebCore/dom/GlobalEventHandlers.idl
r280310 r280703 34 34 // attribute EventHandler onauxclick; 35 35 attribute EventHandler onblur; 36 // FIXME: Implement 'oncancel'. 37 // attribute EventHandler oncancel; 36 attribute EventHandler oncancel; 38 37 attribute EventHandler oncanplay; 39 38 attribute EventHandler oncanplaythrough; -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r280310 r280703 221 221 onbeforeunload 222 222 onblur 223 oncancel 223 224 oncanplay 224 225 oncanplaythrough -
trunk/Source/WebCore/html/HTMLDialogElement.cpp
r280049 r280703 96 96 } 97 97 98 void HTMLDialogElement::cancel() 99 { 100 document().eventLoop().queueTask(TaskSource::UserInteraction, [protectedThis = GCReachableRef { *this }] { 101 auto cancelEvent = Event::create(eventNames().cancelEvent, Event::CanBubble::No, Event::IsCancelable::Yes); 102 protectedThis->dispatchEvent(cancelEvent); 103 if (!cancelEvent->defaultPrevented()) 104 protectedThis->close(nullString()); 105 }); 98 106 } 107 108 } -
trunk/Source/WebCore/html/HTMLDialogElement.h
r280049 r280703 44 44 void close(const String&); 45 45 46 void cancel(); 47 46 48 bool isModal() const { return m_isModal; }; 47 49 -
trunk/Source/WebCore/html/HTMLElement.cpp
r280548 r280703 267 267 &onbeforepasteAttr.get(), 268 268 &onblurAttr.get(), 269 &oncancelAttr.get(), 269 270 &oncanplayAttr.get(), 270 271 &oncanplaythroughAttr.get(), -
trunk/Source/WebCore/page/EventHandler.cpp
r280671 r280703 56 56 #include "FrameView.h" 57 57 #include "FullscreenManager.h" 58 #include "HTMLDialogElement.h" 58 59 #include "HTMLDocument.h" 59 60 #include "HTMLFrameElement.h" … … 3511 3512 } 3512 3513 3514 if (auto* activeModalDialog = m_frame.document()->activeModalDialog()) { 3515 if (initialKeyEvent.type() == PlatformEvent::KeyDown && initialKeyEvent.windowsVirtualKeyCode() == VK_ESCAPE) { 3516 activeModalDialog->cancel(); 3517 return true; 3518 } 3519 } 3520 3513 3521 #if ENABLE(FULLSCREEN_API) 3514 3522 if (m_frame.document()->fullscreenManager().isFullscreen()) {
Note: See TracChangeset
for help on using the changeset viewer.