Update the list of global and window event handlers (#36894)

There's an expanded list of event handlers content attributes that need
to be forwarded to the corresponding window of the body element, and
this PR adds the remaining ones. The full list can be seen in [this
link](https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers-on-elements%2C-document-objects%2C-and-window-objects%3Aevent-handlers-6).

Testing: Covered by various WPT tests

---------

Signed-off-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
Keith Yeung 2025-05-10 23:54:13 +08:00 committed by GitHub
parent d725fb3728
commit da1c49299b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 123 additions and 1013 deletions

View file

@ -1,166 +1,4 @@
[event-handler-attributes-frameset-window.html]
[not shadowed auxclick (document.body)]
expected: FAIL
[not shadowed contextlost (document.body)]
expected: FAIL
[not shadowed contextrestored (document.body)]
expected: FAIL
[not shadowed slotchange (document.body)]
expected: FAIL
[not shadowed webkitanimationend (document.body)]
expected: FAIL
[not shadowed webkitanimationiteration (document.body)]
expected: FAIL
[not shadowed webkitanimationstart (document.body)]
expected: FAIL
[not shadowed webkittransitionend (document.body)]
expected: FAIL
[not shadowed copy (document.body)]
expected: FAIL
[not shadowed cut (document.body)]
expected: FAIL
[not shadowed paste (document.body)]
expected: FAIL
[not shadowed auxclick (document.createElement("frameset"))]
expected: FAIL
[not shadowed contextlost (document.createElement("frameset"))]
expected: FAIL
[not shadowed contextrestored (document.createElement("frameset"))]
expected: FAIL
[not shadowed slotchange (document.createElement("frameset"))]
expected: FAIL
[not shadowed webkitanimationend (document.createElement("frameset"))]
expected: FAIL
[not shadowed webkitanimationiteration (document.createElement("frameset"))]
expected: FAIL
[not shadowed webkitanimationstart (document.createElement("frameset"))]
expected: FAIL
[not shadowed webkittransitionend (document.createElement("frameset"))]
expected: FAIL
[not shadowed copy (document.createElement("frameset"))]
expected: FAIL
[not shadowed cut (document.createElement("frameset"))]
expected: FAIL
[not shadowed paste (document.createElement("frameset"))]
expected: FAIL
[not shadowed auxclick (window)]
expected: FAIL
[not shadowed contextlost (window)]
expected: FAIL
[not shadowed contextrestored (window)]
expected: FAIL
[not shadowed slotchange (window)]
expected: FAIL
[not shadowed webkitanimationend (window)]
expected: FAIL
[not shadowed webkitanimationiteration (window)]
expected: FAIL
[not shadowed webkitanimationstart (window)]
expected: FAIL
[not shadowed webkittransitionend (window)]
expected: FAIL
[not shadowed beforeinput (document.body)]
expected: FAIL
[not shadowed beforematch (document.body)]
expected: FAIL
[not shadowed scrollend (document.body)]
expected: FAIL
[not shadowed beforeinput (document.createElement("frameset"))]
expected: FAIL
[not shadowed beforematch (document.createElement("frameset"))]
expected: FAIL
[not shadowed scrollend (document.createElement("frameset"))]
expected: FAIL
[not shadowed beforeinput (window)]
expected: FAIL
[not shadowed beforematch (window)]
expected: FAIL
[not shadowed scrollend (window)]
expected: FAIL
[not shadowed beforetoggle (document.body)]
expected: FAIL
[not shadowed beforetoggle (document.createElement("frameset"))]
expected: FAIL
[not shadowed beforetoggle (window)]
expected: FAIL
[shadowed pagereveal (document.body)]
expected: FAIL
[shadowed pagereveal removal (document.body)]
expected: FAIL
[shadowed pagereveal (document.createElement("frameset"))]
expected: FAIL
[shadowed pagereveal removal (document.createElement("frameset"))]
expected: FAIL
[shadowed pagereveal (window)]
expected: FAIL
[shadowed pagereveal removal (window)]
expected: FAIL
[shadowed pageswap (document.body)]
expected: FAIL
[shadowed pageswap removal (document.body)]
expected: FAIL
[shadowed pageswap (document.createElement("frameset"))]
expected: FAIL
[shadowed pageswap removal (document.createElement("frameset"))]
expected: FAIL
[shadowed pageswap (window)]
expected: FAIL
[shadowed pageswap removal (window)]
expected: FAIL
[shadowed blur on body fires when event dispatched on window]
expected: FAIL
@ -226,12 +64,3 @@
[shadowed unload on body fires when event dispatched on window]
expected: FAIL
[not shadowed command (document.body)]
expected: FAIL
[not shadowed command (document.createElement("frameset"))]
expected: FAIL
[not shadowed command (window)]
expected: FAIL