mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 449810 – legacy storage module should throw on canceled master password entry in getAllLogins. r=dolske
This commit is contained in:
parent
184d478d40
commit
055353d090
@ -97,7 +97,11 @@ var signonsTreeView = {
|
||||
|
||||
function LoadSignons() {
|
||||
// loads signons into table
|
||||
signons = passwordmanager.getAllLogins({});
|
||||
try {
|
||||
signons = passwordmanager.getAllLogins({});
|
||||
} catch (e) {
|
||||
signons = [];
|
||||
}
|
||||
signonsTreeView.rowCount = signons.length;
|
||||
|
||||
// sort and display the table
|
||||
@ -204,8 +208,13 @@ function FinalizeSignonDeletions(syncNeeded) {
|
||||
}
|
||||
// If the deletion has been performed in a filtered view, reflect the deletion in the unfiltered table.
|
||||
// See bug 405389.
|
||||
if (syncNeeded)
|
||||
signons = passwordmanager.getAllLogins({});
|
||||
if (syncNeeded) {
|
||||
try {
|
||||
signons = passwordmanager.getAllLogins({});
|
||||
} catch (e) {
|
||||
signons = [];
|
||||
}
|
||||
}
|
||||
deletedSignons.length = 0;
|
||||
}
|
||||
|
||||
|
@ -316,6 +316,9 @@ LoginManagerStorage_legacy.prototype = {
|
||||
// decrypt entries for caller.
|
||||
[result, userCanceled] = this._decryptLogins(result);
|
||||
|
||||
if (userCanceled)
|
||||
throw "User canceled Master Password entry";
|
||||
|
||||
count.value = result.length; // needed for XPCOM
|
||||
return result;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user