Backed out changeset 886368b6f007 (bug 1806783) for causing wpt failures on event-handler-all-global-events.html. CLOSED TREE

This commit is contained in:
Marian-Vasile Laza 2023-01-04 22:47:35 +02:00
Родитель 6f2dbf5942
Коммит dc8cfa0e01
8 изменённых файлов: 46 добавлений и 9 удалений

Просмотреть файл

@ -1550,12 +1550,8 @@ 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 },
@ -1652,8 +1648,6 @@ 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 },

Просмотреть файл

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

Просмотреть файл

@ -39,9 +39,7 @@ 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;
@ -73,7 +71,6 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onmouseover;
attribute EventHandler onmouseup;
attribute EventHandler onwheel;
attribute EventHandler onpaste;
attribute EventHandler onpause;
attribute EventHandler onplay;
attribute EventHandler onplaying;
@ -168,6 +165,12 @@ 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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

@ -4,9 +4,27 @@
[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

Просмотреть файл

@ -2,9 +2,27 @@
[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