summaryrefslogtreecommitdiffstats
path: root/dom/webidl/AddonEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/webidl/AddonEvent.webidl12
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/webidl/AddonEvent.webidl b/dom/webidl/AddonEvent.webidl
new file mode 100644
index 0000000000..8f3bd61c0c
--- /dev/null
+++ b/dom/webidl/AddonEvent.webidl
@@ -0,0 +1,12 @@
+[Func="mozilla::AddonManagerWebAPI::IsAPIEnabled",
+ Exposed=Window]
+interface AddonEvent : Event {
+ constructor(DOMString type, AddonEventInit eventInitDict);
+
+ readonly attribute DOMString id;
+};
+
+dictionary AddonEventInit : EventInit {
+ required DOMString id;
+};
+