Bug 1462308 - Disable all Device Sensor events except orientation by default for stable. r?bkelly
MozReview-Commit-ID: 1PTWYpUP14
--- a/dom/tests/mochitest/general/test_interfaces.js
+++ b/dom/tests/mochitest/general/test_interfaces.js
@@ -286,23 +286,23 @@ var interfaceNamesInGlobalScope =
{name: "DataTransfer", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DataTransferItem", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DataTransferItemList", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DelayNode", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
- {name: "DeviceLightEvent", insecureContext: true, disabled: isEarlyBetaOrEarlier},
+ {name: "DeviceLightEvent", insecureContext: true, disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DeviceMotionEvent", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DeviceOrientationEvent", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
- {name: "DeviceProximityEvent", insecureContext: true, disabled: isEarlyBetaOrEarlier},
+ {name: "DeviceProximityEvent", insecureContext: true, disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "Directory", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "Document", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DocumentFragment", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "DocumentTimeline", insecureContext: true, release: false},
@@ -1150,17 +1150,17 @@ var interfaceNamesInGlobalScope =
{name: "U2F", insecureContext: true, disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "UIEvent", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "URL", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "URLSearchParams", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
- {name: "UserProximityEvent", insecureContext: true, disabled: isEarlyBetaOrEarlier},
+ {name: "UserProximityEvent", insecureContext: true, disabled: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ValidityState", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "VideoPlaybackQuality", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "VideoStreamTrack", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "VRDisplay", insecureContext: true, releaseNonWindows: false},
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4897,23 +4897,18 @@ pref("geo.enabled", true);
// Timeout for outbound network geolocation provider XHR
pref("geo.wifi.xhr.timeout", 60000);
// Enable/Disable the various sensor APIs for content
pref("device.sensors.enabled", true);
pref("device.sensors.orientation.enabled", true);
pref("device.sensors.motion.enabled", true);
-#ifdef EARLY_BETA_OR_EARLIER
pref("device.sensors.proximity.enabled", false);
pref("device.sensors.ambientLight.enabled", false);
-#else
-pref("device.sensors.proximity.enabled", true);
-pref("device.sensors.ambientLight.enabled", true);
-#endif
// Enable/Disable the device storage API for content
pref("device.storage.enabled", false);
// Push/Pop/Replace State prefs
pref("browser.history.maxStateObjectSize", 655360);
pref("browser.meta_refresh_when_inactive.disabled", false);