Bug 1529495 - Remove unused third argument to OSCrypto.decryptData and OSCrypto.encryptData. r=MattN

Differential Revision: https://phabricator.services.mozilla.com/D20628

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jared Wein 2019-02-21 15:35:27 +00:00
Родитель 5b3fd4530e
Коммит e81fbc39e8
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -178,7 +178,7 @@ IE7FormPasswords.prototype = {
let data; let data;
try { try {
// the url is used as salt to decrypt the registry value // the url is used as salt to decrypt the registry value
data = this._crypto.decryptData(value, url, true); data = this._crypto.decryptData(value, url);
} catch (e) { } catch (e) {
continue; continue;
} }

Просмотреть файл

@ -375,7 +375,7 @@ add_task(async function test_passwordsAvailable() {
// new value with the encrypted data // new value with the encrypted data
backupAndStore(Storage2Key, website.hash, backupAndStore(Storage2Key, website.hash,
crypto.encryptData(crypto.arrayToString(website.data), crypto.encryptData(crypto.arrayToString(website.data),
website.uri.spec, true)); website.uri.spec));
Assert.ok(migrator.exists, "The migrator has to exist"); Assert.ok(migrator.exists, "The migrator has to exist");
uris.push(website.uri); uris.push(website.uri);
hashes.push(website.hash); hashes.push(website.hash);