mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ad1dca5cab
commit
5a04195c72
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user