summaryrefslogtreecommitdiffstats
path: root/dom/webidl/AddonEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/AddonEvent.webidl')
-rw-r--r--dom/webidl/AddonEvent.webidl15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/webidl/AddonEvent.webidl b/dom/webidl/AddonEvent.webidl
new file mode 100644
index 0000000000..5f60705207
--- /dev/null
+++ b/dom/webidl/AddonEvent.webidl
@@ -0,0 +1,15 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+[Func="mozilla::AddonManagerWebAPI::IsAPIEnabled",
+ Exposed=Window]
+interface AddonEvent : Event {
+ constructor(DOMString type, AddonEventInit eventInitDict);
+
+ readonly attribute DOMString id;
+};
+
+dictionary AddonEventInit : EventInit {
+ required DOMString id;
+};