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.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 000000000..235f81ec2
--- /dev/null
+++ b/dom/webidl/AddonEvent.webidl
@@ -0,0 +1,12 @@
+[ Func="mozilla::AddonManagerWebAPI::IsAPIEnabled",
+ Constructor(DOMString type, AddonEventInit eventInitDict)]
+interface AddonEvent : Event {
+ readonly attribute DOMString id;
+ readonly attribute boolean needsRestart;
+};
+
+dictionary AddonEventInit : EventInit {
+ required DOMString id;
+ required boolean needsRestart;
+};
+