Bug 588942 - Error in LoginManagerChild.js : foundLogins is undefined [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-08-24 10:47:31 +02:00
parent aa64e713bf
commit aab88b51ea

View File

@ -172,9 +172,10 @@ LoginManager.prototype = {
case "PasswordMgr:GetPasswords":
// If there are no logins for this site, bail out now.
if (!this.countLogins(message.json.formOrigin, "", null))
return {};
return { foundLogins: {} };
var foundLogins = {};
if (!this.uiBusy) {
for (var i = 0; i < message.json.actionOrigins.length; i++) {
var actionOrigin = message.json.actionOrigins[i];