Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions tools/amend-event-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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': [
Expand Down Expand Up @@ -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
{
Expand Down