Bug 1029128 - Fix strict-mode error in the JSON storage file. r=dolske

--HG--
extra : rebase_source : 28f9be1e98404d46e6521e775d60deec8e462fdb
extra : histedit_source : cc7c698eea41623717d71f81b016ebc169c43dc1
This commit is contained in:
Blake Kaplan 2014-06-24 16:57:40 -04:00
parent ad1dca5cab
commit 5a04195c72

View File

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