create new records with correct guid set

This commit is contained in:
Dan Mills 2009-03-03 01:48:13 -08:00
parent d80bdb5dc0
commit 47ac6a5d0c

View File

@ -116,13 +116,16 @@ PasswordStore.prototype = {
},
_nsLoginInfoFromRecord: function PasswordStore__nsLoginInfoRec(record) {
return new this._nsLoginInfo(record.hostname,
record.formSubmitURL,
record.httpRealm,
record.username,
record.password,
record.usernameField,
record.passwordField);
let info = new this._nsLoginInfo(record.hostname,
record.formSubmitURL,
record.httpRealm,
record.username,
record.password,
record.usernameField,
record.passwordField);
info.QueryInterface(Ci.nsILoginMetaInfo);
info.guid = record.id;
return info;
},
cacheLogins: function PasswordStore_cacheLogins() {