From 5a04195c728c65e3f281119c5c8b9f90248d2e9f Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Tue, 24 Jun 2014 16:57:40 -0400 Subject: [PATCH] Bug 1029128 - Fix strict-mode error in the JSON storage file. r=dolske --HG-- extra : rebase_source : 28f9be1e98404d46e6521e775d60deec8e462fdb extra : histedit_source : cc7c698eea41623717d71f81b016ebc169c43dc1 --- toolkit/components/passwordmgr/storage-json.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/components/passwordmgr/storage-json.js b/toolkit/components/passwordmgr/storage-json.js index ee76de5545c..f5862288c11 100644 --- a/toolkit/components/passwordmgr/storage-json.js +++ b/toolkit/components/passwordmgr/storage-json.js @@ -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();