Backed out changeset df7bcbbeda21 (bug 1029128)

This commit is contained in:
Carsten "Tomcat" Book 2014-06-27 15:17:23 +02:00
parent af5c9f6706
commit 697df61130

View File

@ -11,8 +11,6 @@
////////////////////////////////////////////////////////////////////////////////
//// Globals
"use strict";
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@ -139,10 +137,12 @@ this.LoginManagerStorage_json.prototype = {
addLogin : function (login) {
this._store.ensureDataReady();
let encUsername, encPassword;
// Throws if there are bogus values.
LoginHelper.checkLoginValues(login);
let [encUsername, encPassword, encType] = this._encryptLogin(login);
[encUsername, encPassword, encType] = this._encryptLogin(login);
// Clone the login, so we don't modify the caller's object.
let loginClone = login.clone();