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