Bug 1528031 - Require [SecureContext] for navigator.mediaDevices & navigator.mozGetUserMedia(). r=pehrsons,smaug
authorJan-Ivar Bruaroey <jib@mozilla.com>
Fri, 05 Jul 2019 21:21:25 +0000
changeset 541184 6d317cd3124aafefc18ffd0ac2056bfe76a119bb
parent 541183 16485dcacef6087da868ac4fef2ad829850db195
child 541185 948869e38bce72ae635e1ab629ab42ce0af444cc
push id11533
push userarchaeopteryx@coole-files.de
push dateMon, 08 Jul 2019 18:18:03 +0000
treeherdermozilla-beta@f4452e031aed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrsons, smaug
bugs1528031
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1528031 - Require [SecureContext] for navigator.mediaDevices & navigator.mozGetUserMedia(). r=pehrsons,smaug Differential Revision: https://phabricator.services.mozilla.com/D33836
modules/libpref/init/StaticPrefList.h
testing/web-platform/meta/mediacapture-record/__dir__.ini
testing/web-platform/meta/mediacapture-streams/__dir__.ini
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -6294,17 +6294,17 @@ VARCACHE_PREF(
 )
 
 // This pref turns off [SecureContext] on the navigator.mediaDevices object, for
 // more compatible legacy behavior.
 VARCACHE_PREF(
   Live,
   "media.devices.insecure.enabled",
   media_devices_insecure_enabled,
-  bool, true
+  bool, false
 )
 
 // If the above pref is also enabled, this pref enabled getUserMedia() support
 // in http, bypassing the instant NotAllowedError you get otherwise.
 VARCACHE_PREF(
   Live,
   "media.getusermedia.insecure.enabled",
   media_getusermedia_insecure_enabled,
--- a/testing/web-platform/meta/mediacapture-record/__dir__.ini
+++ b/testing/web-platform/meta/mediacapture-record/__dir__.ini
@@ -1,1 +1,1 @@
-prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, media.devices.insecure.enabled:false, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]
+prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]
--- a/testing/web-platform/meta/mediacapture-streams/__dir__.ini
+++ b/testing/web-platform/meta/mediacapture-streams/__dir__.ini
@@ -1,1 +1,1 @@
-prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, media.devices.insecure.enabled:false, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]
+prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]