Skip to content

Commit 2e63e81

Browse files
authored
Add event patches for permission-elements (#1799)
Pending spec improvements, see: WICG/PEPC#83
1 parent 2fe0345 commit 2e63e81

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tools/amend-event-data.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,27 @@ const patches = {
355355
change: { interface: "PeriodicSyncEvent" }
356356
}
357357
],
358+
// Custom dispatch algorithms are not identified by crawler, and not
359+
// correctly written for now:
360+
// https://github.com/WICG/PEPC/issues/83
361+
'permission-elements': [
362+
{
363+
pattern: { type: /^validationstatuschange|prompt(action|dismiss)$/ },
364+
matched: 3,
365+
change: {
366+
interface: "Event",
367+
bubbles: true,
368+
cancelable: true
369+
}
370+
},
371+
{
372+
pattern: { type: "location" },
373+
matched: 1,
374+
change: {
375+
interface: "Event"
376+
}
377+
}
378+
],
358379
'pointerlock-2': [
359380
{
360381
pattern: { type: /^pointerlock(change|error)$/ },

0 commit comments

Comments
 (0)