Bug 1381645 - Part 5: Restrict access to VRDisplayEvent to HTTPS only sites draft
authorKearwood "Kip" Gilbert <kgilbert@mozilla.com>
Fri, 02 Feb 2018 15:08:33 -0800
changeset 750859 180a70e6fb680be76222a409fd6625bef2fd30ab
parent 750858 a590cdb2374b96ceda0c7fbf64ccb0b4d02975de
push id97764
push userkgilbert@mozilla.com
push dateFri, 02 Feb 2018 23:23:46 +0000
bugs1381645
milestone60.0a1
Bug 1381645 - Part 5: Restrict access to VRDisplayEvent to HTTPS only sites MozReview-Commit-ID: GMXq9j6Wulo
dom/webidl/VRDisplayEvent.webidl
--- a/dom/webidl/VRDisplayEvent.webidl
+++ b/dom/webidl/VRDisplayEvent.webidl
@@ -11,13 +11,14 @@ enum VRDisplayEventReason {
 };
 
 dictionary VRDisplayEventInit : EventInit {
   required VRDisplay display;
   VRDisplayEventReason reason;
 };
 
 [Pref="dom.vr.enabled",
+ SecureContext,
  Constructor(DOMString type, VRDisplayEventInit eventInitDict)]
 interface VRDisplayEvent : Event {
   readonly attribute VRDisplay display;
   readonly attribute VRDisplayEventReason? reason;
 };