Bug 1518094 - Fix test_*_autocomplete.html autofill failures by setting prefs sooner. r=jaws

Move prefs from pwmgr_common.js to mochitest.ini and remove redundant calls to set those same prefs.

Differential Revision: https://phabricator.services.mozilla.com/D17589

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matthew Noorenberghe 2019-01-25 20:35:26 +00:00
Родитель ac257016f5
Коммит be6b66c0fe
6 изменённых файлов: 12 добавлений и 13 удалений

Просмотреть файл

@ -1,4 +1,9 @@
[DEFAULT] [DEFAULT]
prefs =
signon.rememberSignons=true
signon.autofillForms.http=true
security.insecure_field_warning.contextual.enabled=false
network.auth.non-web-content-triggered-resources-http-auth-allow=true
skip-if = e10s skip-if = e10s
support-files = support-files =
authenticate.sjs authenticate.sjs

Просмотреть файл

@ -1,4 +1,10 @@
[DEFAULT] [DEFAULT]
prefs =
signon.rememberSignons=true
signon.autofillForms.http=true
security.insecure_field_warning.contextual.enabled=false
network.auth.non-web-content-triggered-resources-http-auth-allow=true
support-files = support-files =
../../../prompts/test/chromeScript.js ../../../prompts/test/chromeScript.js
../../../prompts/test/prompt_common.js ../../../prompts/test/prompt_common.js

Просмотреть файл

@ -209,8 +209,6 @@ function spinEventLoop() {
} }
add_task(async function setup() { add_task(async function setup() {
await SpecialPowers.pushPrefEnv({"set": [["security.insecure_field_warning.contextual.enabled", false],
["signon.autofillForms.http", true]]});
listenForUnexpectedPopupShown(); listenForUnexpectedPopupShown();
}); });

Просмотреть файл

@ -209,8 +209,7 @@ function spinEventLoop() {
} }
add_task(async function setup() { add_task(async function setup() {
await SpecialPowers.pushPrefEnv({"set": [["security.insecure_field_warning.contextual.enabled", true], await SpecialPowers.pushPrefEnv({"set": [["security.insecure_field_warning.contextual.enabled", true]]});
["signon.autofillForms.http", true]]});
listenForUnexpectedPopupShown(); listenForUnexpectedPopupShown();
}); });

Просмотреть файл

@ -114,10 +114,6 @@ function removeFocus() {
} }
add_task(async function setup() { add_task(async function setup() {
await SpecialPowers.pushPrefEnv({"set": [
["security.insecure_field_warning.contextual.enabled", false],
]});
ok(readyPromise, "check promise is available"); ok(readyPromise, "check promise is available");
await readyPromise; await readyPromise;
}); });

Просмотреть файл

@ -447,11 +447,6 @@ if (this.addMessageListener) {
}); });
} else { } else {
// Code to only run in the mochitest pages (not in the chrome script). // Code to only run in the mochitest pages (not in the chrome script).
SpecialPowers.pushPrefEnv({"set": [["signon.rememberSignons", true],
["signon.autofillForms.http", true],
["security.insecure_field_warning.contextual.enabled", false],
["network.auth.non-web-content-triggered-resources-http-auth-allow", true]],
});
SimpleTest.registerCleanupFunction(() => { SimpleTest.registerCleanupFunction(() => {
SpecialPowers.popPrefEnv(); SpecialPowers.popPrefEnv();
runInParent(function cleanupParent() { runInParent(function cleanupParent() {