зеркало из https://github.com/mozilla/gecko-dev.git
bug 1503393 - adjust tests for localhost proxying r=mayhemer
Fix test_proxy-failover_canceled and browser_firstPartyIsolation
This commit is contained in:
Родитель
14ec0a0cb3
Коммит
1733ff10c8
|
@ -287,6 +287,11 @@ add_task(async function ip_address_test() {
|
|||
const ipAddr = "127.0.0.1";
|
||||
const ipHost = `http://${ipAddr}/browser/browser/components/originattributes/test/browser/`;
|
||||
|
||||
Services.prefs.setCharPref("network.proxy.no_proxies_on", "");
|
||||
registerCleanupFunction(function() {
|
||||
Services.prefs.clearUserPref("network.proxy.no_proxies_on");
|
||||
});
|
||||
|
||||
let tab = BrowserTestUtils.addTab(gBrowser, ipHost + "test_firstParty.html");
|
||||
await BrowserTestUtils.browserLoaded(tab.linkedBrowser, true);
|
||||
|
||||
|
|
|
@ -39,7 +39,8 @@ function run_test()
|
|||
var prefserv = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefService);
|
||||
var prefs = prefserv.getBranch("network.proxy.");
|
||||
prefs.setIntPref("type", 2);
|
||||
prefs.setIntPref("type", 2);
|
||||
prefs.setCharPref("no_proxies_on", "nothing");
|
||||
prefs.setCharPref("autoconfig_url", "data:text/plain," +
|
||||
"function FindProxyForURL(url, host) {return 'PROXY a_non_existent_domain_x7x6c572v:80; PROXY localhost:" +
|
||||
httpServer.identity.primaryPort + "';}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче