forked from mirrors/gecko-dev
Bug 1786329 - Remove signon.showAutoCompleteOrigins pref r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D155255
This commit is contained in:
parent
b7f9e854c5
commit
8c44b387c3
5 changed files with 1 additions and 10 deletions
|
|
@ -3455,7 +3455,6 @@ pref("signon.includeOtherSubdomainsInLookup", true);
|
||||||
// This temporarily prevents the primary password to reprompt for autocomplete.
|
// This temporarily prevents the primary password to reprompt for autocomplete.
|
||||||
pref("signon.masterPasswordReprompt.timeout_ms", 900000); // 15 Minutes
|
pref("signon.masterPasswordReprompt.timeout_ms", 900000); // 15 Minutes
|
||||||
pref("signon.showAutoCompleteFooter", false);
|
pref("signon.showAutoCompleteFooter", false);
|
||||||
pref("signon.showAutoCompleteOrigins", true);
|
|
||||||
|
|
||||||
// Satchel (Form Manager) prefs
|
// Satchel (Form Manager) prefs
|
||||||
pref("browser.formfill.debug", false);
|
pref("browser.formfill.debug", false);
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,6 @@ XPCOMUtils.defineLazyServiceGetter(
|
||||||
"@mozilla.org/satchel/form-fill-controller;1",
|
"@mozilla.org/satchel/form-fill-controller;1",
|
||||||
Ci.nsIFormFillController
|
Ci.nsIFormFillController
|
||||||
);
|
);
|
||||||
XPCOMUtils.defineLazyPreferenceGetter(
|
|
||||||
lazy,
|
|
||||||
"SHOULD_SHOW_ORIGIN",
|
|
||||||
"signon.showAutoCompleteOrigins"
|
|
||||||
);
|
|
||||||
XPCOMUtils.defineLazyGetter(lazy, "log", () => {
|
XPCOMUtils.defineLazyGetter(lazy, "log", () => {
|
||||||
return lazy.LoginHelper.createLogger("LoginAutoComplete");
|
return lazy.LoginHelper.createLogger("LoginAutoComplete");
|
||||||
});
|
});
|
||||||
|
|
@ -138,7 +133,7 @@ class LoginAutocompleteItem extends AutocompleteItem {
|
||||||
actor,
|
actor,
|
||||||
isOriginMatched
|
isOriginMatched
|
||||||
) {
|
) {
|
||||||
super(lazy.SHOULD_SHOW_ORIGIN ? "loginWithOrigin" : "login");
|
super("loginWithOrigin");
|
||||||
this.login = login.QueryInterface(Ci.nsILoginMetaInfo);
|
this.login = login.QueryInterface(Ci.nsILoginMetaInfo);
|
||||||
this.#actor = actor;
|
this.#actor = actor;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ add_setup(async () => {
|
||||||
await SpecialPowers.pushPrefEnv({
|
await SpecialPowers.pushPrefEnv({
|
||||||
set: [
|
set: [
|
||||||
["signon.includeOtherSubdomainsInLookup", true],
|
["signon.includeOtherSubdomainsInLookup", true],
|
||||||
["signon.showAutoCompleteOrigins", true],
|
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
listenForUnexpectedPopupShown();
|
listenForUnexpectedPopupShown();
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,6 @@ add_task(async function test_autofillAutocompleteUsername_noGeneration2() {
|
||||||
await SpecialPowers.pushPrefEnv({"set": [
|
await SpecialPowers.pushPrefEnv({"set": [
|
||||||
["signon.generation.available", true],
|
["signon.generation.available", true],
|
||||||
["signon.generation.enabled", true],
|
["signon.generation.enabled", true],
|
||||||
["signon.showAutoCompleteOrigins", true],
|
|
||||||
]});
|
]});
|
||||||
|
|
||||||
// 2nd form should not be filled
|
// 2nd form should not be filled
|
||||||
|
|
|
||||||
|
|
@ -657,7 +657,6 @@ add_task(async function test_all_patterns() {
|
||||||
|
|
||||||
LoginHelper.createLogger("LoginAutoCompleteResult");
|
LoginHelper.createLogger("LoginAutoCompleteResult");
|
||||||
Services.prefs.setBoolPref("signon.showAutoCompleteFooter", true);
|
Services.prefs.setBoolPref("signon.showAutoCompleteFooter", true);
|
||||||
Services.prefs.setBoolPref("signon.showAutoCompleteOrigins", true);
|
|
||||||
|
|
||||||
expectedResults.forEach((pattern, testIndex) => {
|
expectedResults.forEach((pattern, testIndex) => {
|
||||||
info(`expectedResults[${testIndex}]`);
|
info(`expectedResults[${testIndex}]`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue