diff --git a/tools/amend-event-data.js b/tools/amend-event-data.js index 7f647b320e36..813449e8e4a7 100644 --- a/tools/amend-event-data.js +++ b/tools/amend-event-data.js @@ -65,6 +65,13 @@ const patches = { change: { interface: "Event" } } ], + 'CSP3': [ + { + pattern: { type: 'securitypolicyviolation' }, + matched: 1, + change: { bubbles: true } + } + ], // Bubbles heuristic in Reffy is not smart enough to trap: // "bubbles and cancelable attributes set to false" // and incorrectly thinks occurence of "bubbles" means that the event bubbles. @@ -75,17 +82,23 @@ const patches = { change: { bubbles: false } } ], - // pending https://github.com/w3c/clipboard-apis/pull/181 - // see also https://github.com/w3c/clipboard-apis/issues/74 + // see https://github.com/w3c/clipboard-apis/issues/74 'clipboard-apis': [ { - pattern: { type: /^(cut|clipboardchange|paste|copy)$/ }, - matched: 4, + pattern: { type: /^(cut|paste|copy)$/ }, + matched: 3, change: { interface: "ClipboardEvent", targets: ["GlobalEventHandlers"], bubbles: true } + }, + { + pattern: { type: 'clipboardchange' }, + matched: 1, + change: { + targets: ["Window"] + } } ], 'compat': [ @@ -184,6 +197,13 @@ const patches = { change: { bubbles: true, interface: "Event"} } ], + 'gamepad': [ + { + pattern: { type: /^gamepad(dis)?connected$/ }, + matched: 2, + change: { targets: ["Window"] } + } + ], 'html': [ // Pending resolution of https://github.com/whatwg/html/issues/682 {