diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/idlharness.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/idlharness.tentative-expected.txt index 844a2444262fc..a8432b0ce04f8 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/idlharness.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/idlharness.tentative-expected.txt @@ -5,16 +5,16 @@ PASS Element includes ParentNode: member names are unique PASS Element includes NonDocumentTypeChildNode: member names are unique PASS Element includes ChildNode: member names are unique PASS Element includes Slottable: member names are unique -FAIL CommandEvent interface: existence and properties of interface object assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface object length assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface object name assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface: attribute invoker assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent interface: attribute command assert_own_property: self does not have own property "CommandEvent" expected property "CommandEvent" missing -FAIL CommandEvent must be primary interface of new CommandEvent("invoke") assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: CommandEvent" -FAIL Stringification of new CommandEvent("invoke") assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: CommandEvent" -FAIL CommandEvent interface: new CommandEvent("invoke") must inherit property "invoker" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: CommandEvent" -FAIL CommandEvent interface: new CommandEvent("invoke") must inherit property "command" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: CommandEvent" +PASS CommandEvent interface: existence and properties of interface object +PASS CommandEvent interface object length +PASS CommandEvent interface object name +PASS CommandEvent interface: existence and properties of interface prototype object +PASS CommandEvent interface: existence and properties of interface prototype object's "constructor" property +PASS CommandEvent interface: existence and properties of interface prototype object's @@unscopables property +PASS CommandEvent interface: attribute invoker +PASS CommandEvent interface: attribute command +PASS CommandEvent must be primary interface of new CommandEvent("invoke") +PASS Stringification of new CommandEvent("invoke") +PASS CommandEvent interface: new CommandEvent("invoke") must inherit property "invoker" with the proper type +PASS CommandEvent interface: new CommandEvent("invoke") must inherit property "command" with the proper type diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeelement-interface.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeelement-interface.tentative-expected.txt index bfa70d7464b90..9676c6ae0d83f 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeelement-interface.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeelement-interface.tentative-expected.txt @@ -1,16 +1,14 @@ -FAIL commandForElement reflects invokee HTML element assert_equals: expected (object) Element node
but got (undefined) undefined -FAIL commandForElement reflects set value assert_equals: expected "" but got "invokee" -FAIL commandForElement reflects set value across shadow root into light dom assert_equals: expected "" but got "invokee" -FAIL commandForElement does not reflect set value inside shadowroot assert_equals: expected null but got Element node -FAIL commandForElement throws error on assignment of non Element assert_throws_js: commandForElement attribute must be an instance of Element function "function () { - invoker.commandForElement = {}; - }" did not throw -FAIL command reflects '' when attribute empty, setAttribute version assert_equals: expected (string) "" but got (undefined) undefined -FAIL command reflects same casing assert_equals: expected "fooBarBaz" but got "" +PASS commandForElement reflects invokee HTML element +PASS commandForElement reflects set value +PASS commandForElement reflects set value across shadow root into light dom +PASS commandForElement does not reflect set value inside shadowroot +PASS commandForElement throws error on assignment of non Element +PASS command reflects '' when attribute empty, setAttribute version +PASS command reflects same casing PASS command reflects '' when attribute empty, IDL version -FAIL command reflects tostring value assert_equals: expected "1,2,3" but got "" -FAIL command reflects '' when attribute set to [] assert_equals: expected (string) "" but got (object) [] -FAIL command reflects tostring value 2 assert_equals: expected (string) "[object Object]" but got (object) object "[object Object]" +PASS command reflects tostring value +PASS command reflects '' when attribute set to [] +PASS command reflects tostring value 2 diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-dispatch-shadow.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-dispatch-shadow.tentative-expected.txt index 15197d8f2946c..a45667c252f98 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-dispatch-shadow.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-dispatch-shadow.tentative-expected.txt @@ -1,5 +1,5 @@ -FAIL CommandEvent propagates across shadow boundaries retargeting invoker Can't find variable: CommandEvent -FAIL cross shadow CommandEvent retargets invoker to host element Can't find variable: CommandEvent +PASS CommandEvent propagates across shadow boundaries retargeting invoker +PASS cross shadow CommandEvent retargets invoker to host element diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-interface.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-interface.tentative-expected.txt index 96a21fa61356a..7626f23ab9577 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-interface.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invokeevent-interface.tentative-expected.txt @@ -1,42 +1,25 @@ -FAIL command is a readonly defaulting to '' Can't find variable: CommandEvent -FAIL invoker is readonly defaulting to null Can't find variable: CommandEvent -FAIL command reflects initialized attribute Can't find variable: CommandEvent -FAIL command set to undefined Can't find variable: CommandEvent -FAIL command set to null Can't find variable: CommandEvent -FAIL command set to false Can't find variable: CommandEvent -FAIL command explicitly set to empty string Can't find variable: CommandEvent -FAIL command set to true Can't find variable: CommandEvent -FAIL command set to a number Can't find variable: CommandEvent -FAIL command set to [] Can't find variable: CommandEvent -FAIL command set to [1, 2, 3] Can't find variable: CommandEvent -FAIL command set to an object Can't find variable: CommandEvent -FAIL command set to an object with a toString function Can't find variable: CommandEvent -FAIL CommandEventInit properties set value Can't find variable: CommandEvent -FAIL CommandEventInit properties set value 2 Can't find variable: CommandEvent -FAIL CommandEventInit properties set value 3 Can't find variable: CommandEvent -FAIL invoker set to undefined Can't find variable: CommandEvent -FAIL invoker set to null Can't find variable: CommandEvent -FAIL invoker set to false assert_throws_js: invoker is not an object function "function () { - new CommandEvent("test", { invoker: false }); - }" threw object "ReferenceError: Can't find variable: CommandEvent" ("ReferenceError") expected instance of function "function TypeError() { - [native code] -}" ("TypeError") -FAIL invoker set to true assert_throws_js: invoker is not an object function "function () { - const event = new CommandEvent("test", { invoker: true }); - }" threw object "ReferenceError: Can't find variable: CommandEvent" ("ReferenceError") expected instance of function "function TypeError() { - [native code] -}" ("TypeError") -FAIL invoker set to {} assert_throws_js: invoker is not an object function "function () { - const event = new CommandEvent("test", { invoker: {} }); - }" threw object "ReferenceError: Can't find variable: CommandEvent" ("ReferenceError") expected instance of function "function TypeError() { - [native code] -}" ("TypeError") -FAIL invoker set to non-Element EventTarget assert_throws_js: invoker is not an Element function "function () { - const eventInit = { command: "closed", invoker: new XMLHttpRequest() }; - const event = new CommandEvent("toggle", eventInit); - }" threw object "ReferenceError: Can't find variable: CommandEvent" ("ReferenceError") expected instance of function "function TypeError() { - [native code] -}" ("TypeError") +PASS command is a readonly defaulting to '' +PASS invoker is readonly defaulting to null +PASS command reflects initialized attribute +PASS command set to undefined +PASS command set to null +PASS command set to false +PASS command explicitly set to empty string +PASS command set to true +PASS command set to a number +PASS command set to [] +PASS command set to [1, 2, 3] +PASS command set to an object +PASS command set to an object with a toString function +PASS CommandEventInit properties set value +PASS CommandEventInit properties set value 2 +PASS CommandEventInit properties set value 3 +PASS invoker set to undefined +PASS invoker set to null +PASS invoker set to false +PASS invoker set to true +PASS invoker set to {} +PASS invoker set to non-Element EventTarget diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-button-event-dispatch.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-button-event-dispatch.tentative-expected.txt index ee08f96a626c1..bd38cf92e3eaf 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-button-event-dispatch.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-button-event-dispatch.tentative-expected.txt @@ -1,22 +1,22 @@ -FAIL event dispatches on click promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to -foo (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to -foo (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to foo- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to foo- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to cAsE-cArRiEs (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to cAsE-cArRiEs (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to - (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to - (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to -a- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to -a- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to a-b (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to a-b (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to --- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to --- (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command property to show-picker (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" -FAIL setting custom command attribute to show-picker (must include dash) sets event command promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: CommandEvent" +PASS event dispatches on click +PASS setting custom command property to -foo (must include dash) sets event command +PASS setting custom command attribute to -foo (must include dash) sets event command +PASS setting custom command property to foo- (must include dash) sets event command +PASS setting custom command attribute to foo- (must include dash) sets event command +PASS setting custom command property to cAsE-cArRiEs (must include dash) sets event command +PASS setting custom command attribute to cAsE-cArRiEs (must include dash) sets event command +PASS setting custom command property to - (must include dash) sets event command +PASS setting custom command attribute to - (must include dash) sets event command +PASS setting custom command property to -a- (must include dash) sets event command +PASS setting custom command attribute to -a- (must include dash) sets event command +PASS setting custom command property to a-b (must include dash) sets event command +PASS setting custom command attribute to a-b (must include dash) sets event command +PASS setting custom command property to --- (must include dash) sets event command +PASS setting custom command attribute to --- (must include dash) sets event command +PASS setting custom command property to show-picker (must include dash) sets event command +PASS setting custom command attribute to show-picker (must include dash) sets event command PASS setting custom command property to foo (no dash) did not dispatch an event PASS setting custom command attribute to foo (no dash) did not dispatch an event PASS setting custom command property to foobar (no dash) did not dispatch an event @@ -30,6 +30,6 @@ PASS setting custom command attribute to hidedocument (no dash) did not dispatch PASS event does not dispatch if click:preventDefault is called PASS event does not dispatch if invoker is disabled PASS event does not dispatch if invoker is form associated without `type` -FAIL event dispatches if invoker is form associated with `type=button` assert_true: event was not called expected true got false -FAIL event dispatches if invokee is non-HTML Element assert_equals: expected (object) Element node but got (undefined) undefined +PASS event dispatches if invoker is form associated with `type=button` +PASS event dispatches if invokee is non-HTML Element diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt index 6d949a182d4ff..4acdeea11beba 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt @@ -1,40 +1,40 @@ -FAIL invoking (with command property as showmodal) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command property as showmodal) closed dialog opens as modal PASS invoking (with command property as showmodal) closed dialog with preventDefault is noop -FAIL invoking (with command property as showmodal) while changing command still opens as modal assert_true: invokee.open expected true got false -FAIL invoking (with command attribute as showmodal) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command property as showmodal) while changing command still opens as modal +PASS invoking (with command attribute as showmodal) closed dialog opens as modal PASS invoking (with command attribute as showmodal) closed dialog with preventDefault is noop -FAIL invoking (with command attribute as showmodal) while changing command still opens as modal assert_true: invokee.open expected true got false -FAIL invoking (with command property as sHoWmOdAl) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command attribute as showmodal) while changing command still opens as modal +PASS invoking (with command property as sHoWmOdAl) closed dialog opens as modal PASS invoking (with command property as sHoWmOdAl) closed dialog with preventDefault is noop -FAIL invoking (with command property as sHoWmOdAl) while changing command still opens as modal assert_true: invokee.open expected true got false -FAIL invoking (with command attribute as sHoWmOdAl) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command property as sHoWmOdAl) while changing command still opens as modal +PASS invoking (with command attribute as sHoWmOdAl) closed dialog opens as modal PASS invoking (with command attribute as sHoWmOdAl) closed dialog with preventDefault is noop -FAIL invoking (with command attribute as sHoWmOdAl) while changing command still opens as modal assert_true: invokee.open expected true got false -FAIL invoking to close (with command property as close) open dialog closes assert_false: invokee.open expected false got true +PASS invoking (with command attribute as sHoWmOdAl) while changing command still opens as modal +PASS invoking to close (with command property as close) open dialog closes PASS invoking to close (with command property as close) open dialog with preventDefault is no-op PASS invoking to close (with command property as close) open modal dialog with preventDefault is no-op -FAIL invoking to close (with command property as close) open dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command property as close) open modal dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command attribute as close) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command property as close) open dialog while changing command still closes +PASS invoking to close (with command property as close) open modal dialog while changing command still closes +PASS invoking to close (with command attribute as close) open dialog closes PASS invoking to close (with command attribute as close) open dialog with preventDefault is no-op PASS invoking to close (with command attribute as close) open modal dialog with preventDefault is no-op -FAIL invoking to close (with command attribute as close) open dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command attribute as close) open modal dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command property as cLoSe) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command attribute as close) open dialog while changing command still closes +PASS invoking to close (with command attribute as close) open modal dialog while changing command still closes +PASS invoking to close (with command property as cLoSe) open dialog closes PASS invoking to close (with command property as cLoSe) open dialog with preventDefault is no-op PASS invoking to close (with command property as cLoSe) open modal dialog with preventDefault is no-op -FAIL invoking to close (with command property as cLoSe) open dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command property as cLoSe) open modal dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command attribute as cLoSe) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command property as cLoSe) open dialog while changing command still closes +PASS invoking to close (with command property as cLoSe) open modal dialog while changing command still closes +PASS invoking to close (with command attribute as cLoSe) open dialog closes PASS invoking to close (with command attribute as cLoSe) open dialog with preventDefault is no-op PASS invoking to close (with command attribute as cLoSe) open modal dialog with preventDefault is no-op -FAIL invoking to close (with command attribute as cLoSe) open dialog while changing command still closes assert_false: invokee.open expected false got true -FAIL invoking to close (with command attribute as cLoSe) open modal dialog while changing command still closes assert_false: invokee.open expected false got true +PASS invoking to close (with command attribute as cLoSe) open dialog while changing command still closes +PASS invoking to close (with command attribute as cLoSe) open modal dialog while changing command still closes PASS invoking (as showmodal) open dialog is noop PASS invoking (as showmodal) open modal, while changing command still a no-op -FAIL invoking (as showmodal) closed popover dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (as showmodal) closed popover dialog opens as modal PASS invoking (as close) already closed dialog is noop PASS invoking (as showmodal) dialog as open popover=manual is noop PASS invoking (as showmodal) dialog as open popover=auto is noop diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-behavior.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-behavior.tentative-expected.txt index ef5835570073f..d6131a9cb8957 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-behavior.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-behavior.tentative-expected.txt @@ -1,30 +1,30 @@ -FAIL changing command attribute inside invokeevent doesn't impact the invocation assert_true: expected true got false -FAIL invoking (as togglepopover) closed popover opens assert_true: expected true got false +PASS changing command attribute inside invokeevent doesn't impact the invocation +PASS invoking (as togglepopover) closed popover opens PASS invoking (as togglepopover) closed popover with preventDefault does not open -FAIL invoking (as showpopover) closed popover opens assert_true: expected true got false +PASS invoking (as showpopover) closed popover opens PASS invoking (as showpopover) closed popover with preventDefault does not open -FAIL invoking (as tOgGlEpOpOvEr) closed popover opens assert_true: expected true got false +PASS invoking (as tOgGlEpOpOvEr) closed popover opens PASS invoking (as tOgGlEpOpOvEr) closed popover with preventDefault does not open -FAIL invoking (as sHoWpOpOvEr) closed popover opens assert_true: expected true got false +PASS invoking (as sHoWpOpOvEr) closed popover opens PASS invoking (as sHoWpOpOvEr) closed popover with preventDefault does not open PASS invoking (as togglepopover) open popover closes -FAIL invoking (as togglepopover) open popover with preventDefault does not close assert_true: expected true got false -FAIL invoking (as togglepopover) from within open popover closes assert_false: expected false got true +PASS invoking (as togglepopover) open popover with preventDefault does not close +PASS invoking (as togglepopover) from within open popover closes PASS invoking (as togglepopover) from within open popover with preventDefault does not close PASS invoking (as hidepopover) open popover closes -FAIL invoking (as hidepopover) open popover with preventDefault does not close assert_true: expected true got false -FAIL invoking (as hidepopover) from within open popover closes assert_false: expected false got true +PASS invoking (as hidepopover) open popover with preventDefault does not close +PASS invoking (as hidepopover) from within open popover closes PASS invoking (as hidepopover) from within open popover with preventDefault does not close PASS invoking (as tOgGlEpOpOvEr) open popover closes -FAIL invoking (as tOgGlEpOpOvEr) open popover with preventDefault does not close assert_true: expected true got false -FAIL invoking (as tOgGlEpOpOvEr) from within open popover closes assert_false: expected false got true +PASS invoking (as tOgGlEpOpOvEr) open popover with preventDefault does not close +PASS invoking (as tOgGlEpOpOvEr) from within open popover closes PASS invoking (as tOgGlEpOpOvEr) from within open popover with preventDefault does not close PASS invoking (as hIdEpOpOvEr) open popover closes -FAIL invoking (as hIdEpOpOvEr) open popover with preventDefault does not close assert_true: expected true got false -FAIL invoking (as hIdEpOpOvEr) from within open popover closes assert_false: expected false got true +PASS invoking (as hIdEpOpOvEr) open popover with preventDefault does not close +PASS invoking (as hIdEpOpOvEr) from within open popover closes PASS invoking (as hIdEpOpOvEr) from within open popover with preventDefault does not close -FAIL invoking (as showpopover) open popover is noop assert_true: expected true got false +PASS invoking (as showpopover) open popover is noop PASS invoking (as hidepopover) closed popover is noop diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-invalid-behavior.tentative-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-invalid-behavior.tentative-expected.txt index 310dd53686b33..5260f02108964 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-invalid-behavior.tentative-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-popover-invalid-behavior.tentative-expected.txt @@ -1,17 +1,17 @@ PASS invoking (as null) on popover does nothing -FAIL invoking (as null) on open popover does nothing assert_true: expected true got false +PASS invoking (as null) on open popover does nothing PASS invoking (as ) on popover does nothing -FAIL invoking (as ) on open popover does nothing assert_true: expected true got false +PASS invoking (as ) on open popover does nothing PASS invoking (as foo-bar) on popover does nothing -FAIL invoking (as foo-bar) on open popover does nothing assert_true: expected true got false +PASS invoking (as foo-bar) on open popover does nothing PASS invoking (as showmodal) on popover does nothing -FAIL invoking (as showmodal) on open popover does nothing assert_true: expected true got false +PASS invoking (as showmodal) on open popover does nothing PASS invoking (as showpicker) on popover does nothing -FAIL invoking (as showpicker) on open popover does nothing assert_true: expected true got false +PASS invoking (as showpicker) on open popover does nothing PASS invoking (as open) on popover does nothing -FAIL invoking (as open) on open popover does nothing assert_true: expected true got false +PASS invoking (as open) on open popover does nothing PASS invoking (as close) on popover does nothing -FAIL invoking (as close) on open popover does nothing assert_true: expected true got false +PASS invoking (as close) on open popover does nothing diff --git a/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt b/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt new file mode 100644 index 0000000000000..6d949a182d4ff --- /dev/null +++ b/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/semantics/invokers/invoketarget-on-dialog-behavior.tentative-expected.txt @@ -0,0 +1,49 @@ + + +FAIL invoking (with command property as showmodal) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command property as showmodal) closed dialog with preventDefault is noop +FAIL invoking (with command property as showmodal) while changing command still opens as modal assert_true: invokee.open expected true got false +FAIL invoking (with command attribute as showmodal) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command attribute as showmodal) closed dialog with preventDefault is noop +FAIL invoking (with command attribute as showmodal) while changing command still opens as modal assert_true: invokee.open expected true got false +FAIL invoking (with command property as sHoWmOdAl) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command property as sHoWmOdAl) closed dialog with preventDefault is noop +FAIL invoking (with command property as sHoWmOdAl) while changing command still opens as modal assert_true: invokee.open expected true got false +FAIL invoking (with command attribute as sHoWmOdAl) closed dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (with command attribute as sHoWmOdAl) closed dialog with preventDefault is noop +FAIL invoking (with command attribute as sHoWmOdAl) while changing command still opens as modal assert_true: invokee.open expected true got false +FAIL invoking to close (with command property as close) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command property as close) open dialog with preventDefault is no-op +PASS invoking to close (with command property as close) open modal dialog with preventDefault is no-op +FAIL invoking to close (with command property as close) open dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command property as close) open modal dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command attribute as close) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command attribute as close) open dialog with preventDefault is no-op +PASS invoking to close (with command attribute as close) open modal dialog with preventDefault is no-op +FAIL invoking to close (with command attribute as close) open dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command attribute as close) open modal dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command property as cLoSe) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command property as cLoSe) open dialog with preventDefault is no-op +PASS invoking to close (with command property as cLoSe) open modal dialog with preventDefault is no-op +FAIL invoking to close (with command property as cLoSe) open dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command property as cLoSe) open modal dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command attribute as cLoSe) open dialog closes assert_false: invokee.open expected false got true +PASS invoking to close (with command attribute as cLoSe) open dialog with preventDefault is no-op +PASS invoking to close (with command attribute as cLoSe) open modal dialog with preventDefault is no-op +FAIL invoking to close (with command attribute as cLoSe) open dialog while changing command still closes assert_false: invokee.open expected false got true +FAIL invoking to close (with command attribute as cLoSe) open modal dialog while changing command still closes assert_false: invokee.open expected false got true +PASS invoking (as showmodal) open dialog is noop +PASS invoking (as showmodal) open modal, while changing command still a no-op +FAIL invoking (as showmodal) closed popover dialog opens as modal assert_true: invokee.open expected true got false +PASS invoking (as close) already closed dialog is noop +PASS invoking (as showmodal) dialog as open popover=manual is noop +PASS invoking (as showmodal) dialog as open popover=auto is noop +PASS invoking (as close) dialog as open popover=manual is noop +PASS invoking (as close) dialog as open popover=auto is noop +PASS invoking (as showmodal) dialog that is removed is noop +PASS invoking (as showmodal) dialog from a detached invoker +PASS invoking (as showmodal) detached dialog from a detached invoker +PASS invoking (as close) dialog that is removed is noop +PASS invoking (as close) dialog from a detached invoker +PASS invoking (as close) detached dialog from a detached invoker + diff --git a/Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml b/Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml index cb6e4ca4c7ee0..c797cab8b8092 100644 --- a/Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml +++ b/Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml @@ -3419,8 +3419,8 @@ InvokerAttributesEnabled: type: bool status: testable category: html - humanReadableName: "HTML invoketarget & invokeaction attributes" - humanReadableDescription: "Enable HTML invoketarget & invokeaction attribute support" + humanReadableName: "HTML command & commandfor attributes" + humanReadableDescription: "Enable HTML command & commandfor attribute support" defaultValue: WebKitLegacy: default: false diff --git a/Source/WebCore/CMakeLists.txt b/Source/WebCore/CMakeLists.txt index 96d9e85c1fa31..b449f5e21a641 100644 --- a/Source/WebCore/CMakeLists.txt +++ b/Source/WebCore/CMakeLists.txt @@ -1027,6 +1027,7 @@ set(WebCore_NON_SVG_IDL_FILES dom/CheckVisibilityOptions.idl dom/ChildNode.idl dom/ClipboardEvent.idl + dom/CommandEvent.idl dom/Comment.idl dom/CompositionEvent.idl dom/ContentVisibilityAutoStateChangeEvent.idl @@ -1103,7 +1104,6 @@ set(WebCore_NON_SVG_IDL_FILES dom/IdleRequestOptions.idl dom/InnerHTML.idl dom/InputEvent.idl - dom/InvokeEvent.idl dom/KeyboardEvent.idl dom/MessageChannel.idl dom/MessageEvent.idl diff --git a/Source/WebCore/DerivedSources-input.xcfilelist b/Source/WebCore/DerivedSources-input.xcfilelist index bc1ea39121f61..75705517d83f4 100644 --- a/Source/WebCore/DerivedSources-input.xcfilelist +++ b/Source/WebCore/DerivedSources-input.xcfilelist @@ -1333,6 +1333,7 @@ $(PROJECT_DIR)/dom/CharacterData.idl $(PROJECT_DIR)/dom/CheckVisibilityOptions.idl $(PROJECT_DIR)/dom/ChildNode.idl $(PROJECT_DIR)/dom/ClipboardEvent.idl +$(PROJECT_DIR)/dom/CommandEvent.idl $(PROJECT_DIR)/dom/Comment.idl $(PROJECT_DIR)/dom/CompositionEvent.idl $(PROJECT_DIR)/dom/ContentVisibilityAutoStateChangeEvent.idl @@ -1414,7 +1415,6 @@ $(PROJECT_DIR)/dom/IdleRequestCallback.idl $(PROJECT_DIR)/dom/IdleRequestOptions.idl $(PROJECT_DIR)/dom/InnerHTML.idl $(PROJECT_DIR)/dom/InputEvent.idl -$(PROJECT_DIR)/dom/InvokeEvent.idl $(PROJECT_DIR)/dom/KeyboardEvent.idl $(PROJECT_DIR)/dom/MessageChannel.idl $(PROJECT_DIR)/dom/MessageEvent.idl diff --git a/Source/WebCore/DerivedSources-output.xcfilelist b/Source/WebCore/DerivedSources-output.xcfilelist index 9a1436d49b96b..ab3d131eceed7 100644 --- a/Source/WebCore/DerivedSources-output.xcfilelist +++ b/Source/WebCore/DerivedSources-output.xcfilelist @@ -593,6 +593,8 @@ $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCloseEvent.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCloseEvent.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSColorGamut.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSColorGamut.h +$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCommandEvent.cpp +$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCommandEvent.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCommandLineAPIHost.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSCommandLineAPIHost.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSComment.cpp @@ -1717,8 +1719,6 @@ $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSIntersectionObserverCallback.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSIntersectionObserverCallback.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSIntersectionObserverEntry.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSIntersectionObserverEntry.h -$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSInvokeEvent.cpp -$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSInvokeEvent.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSInvokerElement.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSInvokerElement.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSIsLoggedIn.cpp diff --git a/Source/WebCore/DerivedSources.make b/Source/WebCore/DerivedSources.make index f4f3d8c3111fb..971215c6146e1 100644 --- a/Source/WebCore/DerivedSources.make +++ b/Source/WebCore/DerivedSources.make @@ -1033,7 +1033,9 @@ JS_BINDING_IDLS := \ $(WebCore)/dom/CheckVisibilityOptions.idl \ $(WebCore)/dom/ChildNode.idl \ $(WebCore)/dom/ClipboardEvent.idl \ + $(WebCore)/dom/CommandEvent.idl \ $(WebCore)/dom/Comment.idl \ + $(WebCore)/dom/CommandEvent.idl \ $(WebCore)/dom/CompositionEvent.idl \ $(WebCore)/dom/ContentVisibilityAutoStateChangeEvent.idl \ $(WebCore)/dom/CreateHTMLCallback.idl \ @@ -1109,7 +1111,6 @@ JS_BINDING_IDLS := \ $(WebCore)/dom/IdleRequestOptions.idl \ $(WebCore)/dom/InnerHTML.idl \ $(WebCore)/dom/InputEvent.idl \ - $(WebCore)/dom/InvokeEvent.idl \ $(WebCore)/dom/KeyboardEvent.idl \ $(WebCore)/dom/MessageChannel.idl \ $(WebCore)/dom/MessageEvent.idl \ diff --git a/Source/WebCore/Headers.cmake b/Source/WebCore/Headers.cmake index 83b95fb915d06..1f8657db050cc 100644 --- a/Source/WebCore/Headers.cmake +++ b/Source/WebCore/Headers.cmake @@ -933,6 +933,7 @@ set(WebCore_PRIVATE_FRAMEWORK_HEADERS dom/CheckVisibilityOptions.h dom/CollectionIndexCache.h dom/CollectionIndexCacheInlines.h + dom/CommandEvent.h dom/Comment.h dom/ContainerNode.h dom/ContextDestructionObserver.h @@ -1001,7 +1002,6 @@ set(WebCore_PRIVATE_FRAMEWORK_HEADERS dom/GetHTMLOptions.h dom/ImageOverlay.h dom/InlineStyleSheetOwner.h - dom/InvokeEvent.h dom/KeyboardEvent.h dom/LiveNodeList.h dom/LiveNodeListInlines.h diff --git a/Source/WebCore/SmartPointerExpectations/UncountedLocalVarsCheckerExpectations b/Source/WebCore/SmartPointerExpectations/UncountedLocalVarsCheckerExpectations index 5500a3e274b12..52fd996ef3779 100644 --- a/Source/WebCore/SmartPointerExpectations/UncountedLocalVarsCheckerExpectations +++ b/Source/WebCore/SmartPointerExpectations/UncountedLocalVarsCheckerExpectations @@ -739,6 +739,7 @@ dom/ActiveDOMObject.cpp dom/BroadcastChannel.cpp dom/CollectionIndexCache.cpp dom/CollectionIndexCacheInlines.h +dom/CommandEvent.cpp dom/ComposedTreeAncestorIterator.h dom/ComposedTreeIterator.cpp dom/ComposedTreeIterator.h @@ -766,7 +767,6 @@ dom/FragmentDirectiveRangeFinder.cpp dom/FullscreenManager.cpp dom/ImageOverlay.cpp dom/InlineStyleSheetOwner.cpp -dom/InvokeEvent.cpp dom/KeyboardEvent.cpp dom/MessageEvent.cpp dom/MessagePort.cpp diff --git a/Source/WebCore/Sources.txt b/Source/WebCore/Sources.txt index cae20040f706d..2568775261e89 100644 --- a/Source/WebCore/Sources.txt +++ b/Source/WebCore/Sources.txt @@ -1100,6 +1100,7 @@ dom/ChildNodeList.cpp dom/ClassCollection.cpp dom/ClipboardEvent.cpp dom/CollectionIndexCache.cpp +dom/CommandEvent.cpp dom/Comment.cpp dom/ComposedTreeIterator.cpp dom/CompositionEvent.cpp @@ -1175,7 +1176,6 @@ dom/ImageOverlay.cpp dom/InlineClassicScript.cpp dom/InlineStyleSheetOwner.cpp dom/InputEvent.cpp -dom/InvokeEvent.cpp dom/InternalObserver.cpp dom/InternalObserverFromScript.cpp dom/KeyboardEvent.cpp @@ -3438,6 +3438,7 @@ JSClipboardEvent.cpp JSClipboardItem.cpp JSCloseEvent.cpp JSColorGamut.cpp +JSCommandEvent.cpp JSCommandLineAPIHost.cpp JSComment.cpp JSCompositeOperation.cpp @@ -3924,7 +3925,6 @@ JSIntersectionObserver.cpp JSIntersectionObserverCallback.cpp JSIntersectionObserverEntry.cpp JSIterationCompositeOperation.cpp -JSInvokeEvent.cpp JSIsLoggedIn.cpp JSJsonWebKey.cpp JSKeyboardEvent.cpp diff --git a/Source/WebCore/WebCore.xcodeproj/project.pbxproj b/Source/WebCore/WebCore.xcodeproj/project.pbxproj index 8a4bef606165b..64c9a55db2601 100644 --- a/Source/WebCore/WebCore.xcodeproj/project.pbxproj +++ b/Source/WebCore/WebCore.xcodeproj/project.pbxproj @@ -10879,11 +10879,11 @@ 49B53D412B1AA58A0056A172 /* RenderTreeUpdaterViewTransition.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTreeUpdaterViewTransition.cpp; sourceTree = "