aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-03-12 11:45:45 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2018-03-12 15:32:00 +0100
commit8013e7801e65aefc0489bf0722f8e6b4d238f657 (patch)
tree832cc798da0894f1a8b9ffbf609a88e9b8870c62 /components/script
parente5ba3dfd43b09035bda9630083cdc7cbe6163e5d (diff)
downloadservo-8013e7801e65aefc0489bf0722f8e6b4d238f657.tar.gz
servo-8013e7801e65aefc0489bf0722f8e6b4d238f657.zip
Properly pref-gate the VR WebIDL interface
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/webidls/VR.webidl1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/webidls/VR.webidl b/components/script/dom/webidls/VR.webidl
index af256286523..a1092cdb734 100644
--- a/components/script/dom/webidls/VR.webidl
+++ b/components/script/dom/webidls/VR.webidl
@@ -5,6 +5,7 @@
// https://w3c.github.io/webvr/#interface-navigator
[NoInterfaceObject]
interface VR {
+ [Pref="dom.webvr.enabled"]
Promise<sequence<VRDisplay>> getDisplays();
//readonly attribute FrozenArray<VRDisplay> activeVRDisplays;
};