зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255253 - Remove a mostly-unneeded countLogins() call. r=MattN
MozReview-Commit-ID: 5L1SdtZA9aU --HG-- extra : rebase_source : e953c6b8fce36273472e9a5e117b10f34bcae64d
This commit is contained in:
Родитель
dd1d61db06
Коммит
a56fcbf802
|
@ -169,21 +169,6 @@ var LoginManagerParent = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let allLoginsCount = Services.logins.countLogins(formOrigin, "", null);
|
|
||||||
// If there are no logins for this site, bail out now.
|
|
||||||
if (!allLoginsCount) {
|
|
||||||
try {
|
|
||||||
target.sendAsyncMessage("RemoteLogins:loginsFound", {
|
|
||||||
requestId: requestId,
|
|
||||||
logins: [],
|
|
||||||
recipes,
|
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
log("error sending message to target", e);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we're currently displaying a master password prompt, defer
|
// If we're currently displaying a master password prompt, defer
|
||||||
// processing this form until the user handles the prompt.
|
// processing this form until the user handles the prompt.
|
||||||
if (Services.logins.uiBusy) {
|
if (Services.logins.uiBusy) {
|
||||||
|
@ -231,16 +216,6 @@ var LoginManagerParent = {
|
||||||
logins: jsLogins,
|
logins: jsLogins,
|
||||||
recipes,
|
recipes,
|
||||||
});
|
});
|
||||||
|
|
||||||
const PWMGR_FORM_ACTION_EFFECT = Services.telemetry.getHistogramById("PWMGR_FORM_ACTION_EFFECT");
|
|
||||||
if (logins.length == 0) {
|
|
||||||
PWMGR_FORM_ACTION_EFFECT.add(2);
|
|
||||||
} else if (logins.length == allLoginsCount) {
|
|
||||||
PWMGR_FORM_ACTION_EFFECT.add(0);
|
|
||||||
} else {
|
|
||||||
// logins.length < allLoginsCount
|
|
||||||
PWMGR_FORM_ACTION_EFFECT.add(1);
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
doAutocompleteSearch: function({ formOrigin, actionOrigin,
|
doAutocompleteSearch: function({ formOrigin, actionOrigin,
|
||||||
|
|
|
@ -9270,12 +9270,6 @@
|
||||||
"n_buckets" : 10,
|
"n_buckets" : 10,
|
||||||
"description": "The number of sites for which the user has explicitly rejected saving logins"
|
"description": "The number of sites for which the user has explicitly rejected saving logins"
|
||||||
},
|
},
|
||||||
"PWMGR_FORM_ACTION_EFFECT": {
|
|
||||||
"expires_in_version": "never",
|
|
||||||
"kind": "enumerated",
|
|
||||||
"n_values" : 5,
|
|
||||||
"description": "The effect of the form action on signon autofill. (0=No effect, 1=Fewer logins after considering the form action, 2=No logins match form origin and action."
|
|
||||||
},
|
|
||||||
"PWMGR_FORM_AUTOFILL_RESULT": {
|
"PWMGR_FORM_AUTOFILL_RESULT": {
|
||||||
"expires_in_version": "never",
|
"expires_in_version": "never",
|
||||||
"kind": "enumerated",
|
"kind": "enumerated",
|
||||||
|
|
|
@ -826,7 +826,6 @@
|
||||||
"PROCESS_CRASH_SUBMIT_ATTEMPT",
|
"PROCESS_CRASH_SUBMIT_ATTEMPT",
|
||||||
"PROCESS_CRASH_SUBMIT_SUCCESS",
|
"PROCESS_CRASH_SUBMIT_SUCCESS",
|
||||||
"PWMGR_BLOCKLIST_NUM_SITES",
|
"PWMGR_BLOCKLIST_NUM_SITES",
|
||||||
"PWMGR_FORM_ACTION_EFFECT",
|
|
||||||
"PWMGR_FORM_AUTOFILL_RESULT",
|
"PWMGR_FORM_AUTOFILL_RESULT",
|
||||||
"PWMGR_LOGIN_LAST_USED_DAYS",
|
"PWMGR_LOGIN_LAST_USED_DAYS",
|
||||||
"PWMGR_LOGIN_PAGE_SAFETY",
|
"PWMGR_LOGIN_PAGE_SAFETY",
|
||||||
|
@ -2041,7 +2040,6 @@
|
||||||
"PUSH_API_UNSUBSCRIBE_SUCCEEDED",
|
"PUSH_API_UNSUBSCRIBE_SUCCEEDED",
|
||||||
"PUSH_API_USED",
|
"PUSH_API_USED",
|
||||||
"PWMGR_BLOCKLIST_NUM_SITES",
|
"PWMGR_BLOCKLIST_NUM_SITES",
|
||||||
"PWMGR_FORM_ACTION_EFFECT",
|
|
||||||
"PWMGR_FORM_AUTOFILL_RESULT",
|
"PWMGR_FORM_AUTOFILL_RESULT",
|
||||||
"PWMGR_LOGIN_LAST_USED_DAYS",
|
"PWMGR_LOGIN_LAST_USED_DAYS",
|
||||||
"PWMGR_LOGIN_PAGE_SAFETY",
|
"PWMGR_LOGIN_PAGE_SAFETY",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче