aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/VRDisplayEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/VRDisplayEvent.webidl')
-rw-r--r--components/script/dom/webidls/VRDisplayEvent.webidl3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webidls/VRDisplayEvent.webidl b/components/script/dom/webidls/VRDisplayEvent.webidl
index 94544868fb6..c4207d51b7e 100644
--- a/components/script/dom/webidls/VRDisplayEvent.webidl
+++ b/components/script/dom/webidls/VRDisplayEvent.webidl
@@ -11,8 +11,9 @@ enum VRDisplayEventReason {
"requested"
};
-[Pref="dom.webvr.enabled", Constructor(DOMString type, VRDisplayEventInit eventInitDict)]
+[Pref="dom.webvr.enabled"]
interface VRDisplayEvent : Event {
+ [Throws] constructor(DOMString type, VRDisplayEventInit eventInitDict);
readonly attribute VRDisplay display;
readonly attribute VRDisplayEventReason? reason;
};