Bug 1806783 - Move oncopy/oncut/onpaste to GlobalEventHandlers. r=smaug

By this change https://github.com/whatwg/html/pull/8096,
`DocumentAndElementEventHandlers` was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D165947
This commit is contained in:
Tetsuharu Ohzeki 2023-01-06 08:04:49 +00:00
parent 7993229384
commit f2c6ef76cc
10 changed files with 9 additions and 116 deletions

View File

@ -1550,8 +1550,12 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncontextmenu", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncopy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncuechange", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "oncut", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ondblclick", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ondevicemotion", insecureContext: true },
@ -1648,6 +1652,8 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onpageshow", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onpaste", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onpause", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "onplay", insecureContext: true },

View File

@ -617,7 +617,6 @@ partial interface Document {
Document includes XPathEvaluatorMixin;
Document includes GlobalEventHandlers;
Document includes DocumentAndElementEventHandlers;
Document includes TouchEventHandlers;
Document includes ParentNode;
Document includes OnErrorEventHandlerForNodes;

View File

@ -39,7 +39,9 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onclick;
attribute EventHandler onclose;
attribute EventHandler oncontextmenu;
attribute EventHandler oncopy;
attribute EventHandler oncuechange;
attribute EventHandler oncut;
attribute EventHandler ondblclick;
attribute EventHandler ondrag;
attribute EventHandler ondragend;
@ -71,6 +73,7 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onmouseover;
attribute EventHandler onmouseup;
attribute EventHandler onwheel;
attribute EventHandler onpaste;
attribute EventHandler onpause;
attribute EventHandler onplay;
attribute EventHandler onplaying;
@ -165,12 +168,6 @@ partial interface mixin WindowEventHandlers {
attribute EventHandler ongamepaddisconnected;
};
interface mixin DocumentAndElementEventHandlers {
attribute EventHandler oncopy;
attribute EventHandler oncut;
attribute EventHandler onpaste;
};
// The spec has |attribute OnErrorEventHandler onerror;| on
// GlobalEventHandlers, and calls the handler differently depending on
// whether an ErrorEvent was fired. We don't do that, and until we do we'll

View File

@ -103,7 +103,6 @@ interface mixin TouchEventHandlers {
HTMLElement includes GlobalEventHandlers;
HTMLElement includes HTMLOrForeignElement;
HTMLElement includes DocumentAndElementEventHandlers;
HTMLElement includes ElementCSSInlineStyle;
HTMLElement includes TouchEventHandlers;
HTMLElement includes OnErrorEventHandlerForNodes;

View File

@ -14,7 +14,6 @@
interface MathMLElement : Element { };
MathMLElement includes GlobalEventHandlers;
MathMLElement includes HTMLOrForeignElement;
MathMLElement includes DocumentAndElementEventHandlers;
MathMLElement includes ElementCSSInlineStyle;
MathMLElement includes TouchEventHandlers;
MathMLElement includes OnErrorEventHandlerForNodes;

View File

@ -25,7 +25,6 @@ interface SVGElement : Element {
SVGElement includes GlobalEventHandlers;
SVGElement includes HTMLOrForeignElement;
SVGElement includes DocumentAndElementEventHandlers;
SVGElement includes ElementCSSInlineStyle;
SVGElement includes TouchEventHandlers;
SVGElement includes OnErrorEventHandlerForNodes;

View File

@ -526,24 +526,6 @@ prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featu
[Document interface: documentWithHandlers must inherit property "onbeforematch" with the proper type]
expected: FAIL
[Window interface: attribute oncopy]
expected: FAIL
[Window interface: attribute oncut]
expected: FAIL
[Window interface: attribute onpaste]
expected: FAIL
[Window interface: window must inherit property "oncopy" with the proper type]
expected: FAIL
[Window interface: window must inherit property "oncut" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpaste" with the proper type]
expected: FAIL
[idlharness.https.html?include=HTML.*]
prefs: [dom.dialog_element.enabled:true]

View File

@ -46,21 +46,3 @@
[onbeforematch: the content attribute must execute when an event is dispatched]
expected: FAIL
[oncopy: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
[oncopy: the default value must be null]
expected: FAIL
[oncut: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
[oncut: the default value must be null]
expected: FAIL
[onpaste: must be on the appropriate locations for GlobalEventHandlers]
expected: FAIL
[onpaste: the default value must be null]
expected: FAIL

View File

@ -2,27 +2,9 @@
[not shadowed cancel (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 cancel (document.createElement("body"))]
expected: FAIL
[not shadowed copy (document.createElement("body"))]
expected: FAIL
[not shadowed cut (document.createElement("body"))]
expected: FAIL
[not shadowed paste (document.createElement("body"))]
expected: FAIL
[not shadowed cancel (window)]
expected: FAIL
@ -74,20 +56,3 @@
[not shadowed beforematch (document.body)]
expected: FAIL
[not shadowed cut (document.body)]
expected: FAIL
[not shadowed copy (document.body)]
expected: FAIL
[not shadowed paste (document.body)]
expected: FAIL
[not shadowed cut (document.createElement("body"))]
expected: FAIL
[not shadowed paste (document.createElement("body"))]
expected: FAIL
[not shadowed copy (document.createElement("body"))]
expected: FAIL

View File

@ -2,27 +2,9 @@
[not shadowed cancel (document.createElement("frameset"))]
expected: FAIL
[not shadowed paste (document.createElement("frameset"))]
expected: FAIL
[not shadowed cut (document.body)]
expected: FAIL
[not shadowed copy (document.createElement("frameset"))]
expected: FAIL
[not shadowed cancel (document.body)]
expected: FAIL
[not shadowed paste (document.body)]
expected: FAIL
[not shadowed copy (document.body)]
expected: FAIL
[not shadowed cut (document.createElement("frameset"))]
expected: FAIL
[not shadowed cancel (window)]
expected: FAIL
@ -62,20 +44,3 @@
[not shadowed beforematch (document.body)]
expected: FAIL
[not shadowed cut (document.body)]
expected: FAIL
[not shadowed copy (document.body)]
expected: FAIL
[not shadowed paste (document.body)]
expected: FAIL
[not shadowed copy (document.createElement("frameset"))]
expected: FAIL
[not shadowed paste (document.createElement("frameset"))]
expected: FAIL
[not shadowed cut (document.createElement("frameset"))]
expected: FAIL