Bug 834836 - Disable mixed content blocking when running tests that rely on mixed active content loads to test security state. r=smaug
This commit is contained in:
@@ -110,6 +110,11 @@ const browserElementTestHelpers = {
|
|||||||
// but it's still scary looking. So we just set the pref to true and never
|
// but it's still scary looking. So we just set the pref to true and never
|
||||||
// pop that value. We'll rely on the tests which test IPC security to set
|
// pop that value. We'll rely on the tests which test IPC security to set
|
||||||
// it to false.
|
// it to false.
|
||||||
|
//
|
||||||
|
// * security.mixed_content.block_active_content: false
|
||||||
|
//
|
||||||
|
// Disable mixed active content blocking, so that tests can confirm that mixed
|
||||||
|
// content results in a broken security state.
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var oop = location.pathname.indexOf('_inproc_') == -1;
|
var oop = location.pathname.indexOf('_inproc_') == -1;
|
||||||
@@ -118,7 +123,8 @@ const browserElementTestHelpers = {
|
|||||||
SpecialPowers.setBoolPref("network.disable.ipc.security", true);
|
SpecialPowers.setBoolPref("network.disable.ipc.security", true);
|
||||||
SpecialPowers.pushPrefEnv({set: [["browser.pageThumbs.enabled", false],
|
SpecialPowers.pushPrefEnv({set: [["browser.pageThumbs.enabled", false],
|
||||||
["dom.ipc.browser_frames.oop_by_default", oop],
|
["dom.ipc.browser_frames.oop_by_default", oop],
|
||||||
["dom.ipc.tabs.disabled", false]]},
|
["dom.ipc.tabs.disabled", false],
|
||||||
|
["security.mixed_content.block_active_content", false]]},
|
||||||
browserElementTestHelpers.unlockTestReady.bind(browserElementTestHelpers));
|
browserElementTestHelpers.unlockTestReady.bind(browserElementTestHelpers));
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user