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]
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
support-files =
authenticate.sjs

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

@ -1,4 +1,10 @@
[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 =
../../../prompts/test/chromeScript.js
../../../prompts/test/prompt_common.js

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

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

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

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

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

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

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

@ -447,11 +447,6 @@ if (this.addMessageListener) {
});
} else {
// 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(() => {
SpecialPowers.popPrefEnv();
runInParent(function cleanupParent() {