Bug 234973 - Persist state when editing entries in password manager (211352). r=steveck
This fixes the related issue 211352. This commit uses the global variable
savedSelection introduced in previous commit to also persist state when a login
is modified.
MozReview-Commit-ID: GIpxTz3D2iM
--- a/toolkit/components/passwordmgr/content/passwordManager.js
+++ b/toolkit/components/passwordmgr/content/passwordManager.js
@@ -212,16 +212,17 @@ let signonsTreeView = {
let table = GetVisibleLogins();
function _editLogin(field) {
if (value == table[row][field]) {
return;
}
let existingLogin = table[row].clone();
table[row][field] = value;
table[row].timePasswordChanged = Date.now();
+ savedSelection = row;
Services.logins.modifyLogin(existingLogin, table[row]);
signonsTree.treeBoxObject.invalidateRow(row);
}
if (col.id == "userCol") {
_editLogin("username");
} else if (col.id == "passwordCol") {