Bug 1525036 - Add pref for Cross-Origin policy r=nika
authorValentin Gosu <valentin.gosu@gmail.com>
Tue, 12 Mar 2019 08:04:15 +0000
changeset 521503 fb2aeeed63c7148e203528b929ff44b121b0f010
parent 521502 214ce4ef682ae8e113c3f5604770f05fb2fbb231
child 521504 b77be7643141a8f3646257e599b38a3be862e6e0
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnika
bugs1525036
milestone67.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 1525036 - Add pref for Cross-Origin policy r=nika Differential Revision: https://phabricator.services.mozilla.com/D21417
modules/libpref/init/StaticPrefList.h
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -2091,16 +2091,23 @@ VARCACHE_PREF(
 
 // Blocked plugin content
 VARCACHE_PREF(
   "browser.safebrowsing.blockedURIs.enabled",
    browser_safebrowsing_blockedURIs_enabled,
   bool, true
 )
 
+// When this pref is enabled document loads with a mismatched
+// Cross-Origin header will fail to load
+VARCACHE_PREF("browser.tabs.remote.useCrossOriginPolicy",
+              browser_tabs_remote_useCrossOriginPolicy,
+              bool, false
+)
+
 // Prevent system colors from being exposed to CSS or canvas.
 VARCACHE_PREF(
   "ui.use_standins_for_native_colors",
    ui_use_standins_for_native_colors,
    RelaxedAtomicBool, false
 )
 
 //---------------------------------------------------------------------------