зеркало из https://github.com/mozilla/gecko-dev.git
Lots of changes and bugfixes: - Enable multiple username support by listening to change events for the username field when there is more than one stored login for the form. - Make the signon hashtable store a SignonHashEntry, which has a pointer to the first SignonDataEntry. This lets us adjust the head of the linked list without a hashtable operation, and also fixes a case where we would continue using a deleted entry, leading to a crash.- Change FindPasswordEntryFromSignonData to FnidPasswordEntryInternal, and refactor it a bit.- Clean up prefill logic so that multiple forms on a page could be prefilled.- Fix bug where the last input was used as the username field, instead of the input just before the password.- Make sure we write out all entries for each realm.- Make sure we include all entries in each realm when returning an enumerator.- Remove some form manager cruft I missed in passwordManager.js.
This commit is contained in:
Родитель
5d26504ce8
Коммит
9603103288
|
@ -69,10 +69,8 @@ function Startup() {
|
|||
}
|
||||
|
||||
function Shutdown() {
|
||||
if (isPasswordManager) {
|
||||
kObserverService.removeObserver(signonReloadDisplay, "signonChanged");
|
||||
kObserverService.removeObserver(signonReloadDisplay, "signonSelectUser");
|
||||
}
|
||||
kObserverService.removeObserver(signonReloadDisplay, "signonChanged");
|
||||
kObserverService.removeObserver(signonReloadDisplay, "signonSelectUser");
|
||||
}
|
||||
|
||||
var signonReloadDisplay = {
|
||||
|
@ -355,11 +353,7 @@ function TrimString(string)
|
|||
}
|
||||
|
||||
function doHelpButton() {
|
||||
if (isPasswordManager) {
|
||||
openHelp("password_mgr");
|
||||
} else {
|
||||
openHelp("forms_sites");
|
||||
}
|
||||
openHelp("password_mgr");
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче