diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-12 11:45:45 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-12 15:32:00 +0100 |
commit | 8013e7801e65aefc0489bf0722f8e6b4d238f657 (patch) | |
tree | 832cc798da0894f1a8b9ffbf609a88e9b8870c62 /components/script | |
parent | e5ba3dfd43b09035bda9630083cdc7cbe6163e5d (diff) | |
download | servo-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.webidl | 1 |
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; }; |