diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-11-18 14:59:14 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-11-18 14:59:14 +0100 |
commit | c40ee8c608e895763ae7004a5d5fb3c0df0e3f39 (patch) | |
tree | ff3590a47a668989b351277f858ec9588ad308d0 /browser | |
parent | 7a6b077e4eff356c99b2d917c3dc0c4f42f8e10d (diff) | |
download | palemoon-gre-c40ee8c608e895763ae7004a5d5fb3c0df0e3f39.tar.gz |
Profiles - the refresh - migrate (passwords)
Diffstat (limited to 'browser')
-rw-r--r-- | browser/components/migration/FirefoxProfileMigrator.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/browser/components/migration/FirefoxProfileMigrator.js b/browser/components/migration/FirefoxProfileMigrator.js index c7b353dae..ab4ae55fb 100644 --- a/browser/components/migration/FirefoxProfileMigrator.js +++ b/browser/components/migration/FirefoxProfileMigrator.js @@ -73,12 +73,12 @@ FirefoxProfileMigrator.prototype.getResources = function(aProfile) { let file = sourceProfileDir.clone(); file.append(fileName); - // File resources are monolithic. We don't make partial copies since - // they are not expected to work alone. - if (!file.exists()) - return null; - - files.push(file); + if (file.exists()) { + files.push(file); + } + } + if (!files.length) { + return null; } return { type: aMigrationType, @@ -92,10 +92,10 @@ FirefoxProfileMigrator.prototype.getResources = function(aProfile) { }; let types = MigrationUtils.resourceTypes; - let places = getFileResource(types.HISTORY, ["places.sqlite"]); - let cookies = getFileResource(types.COOKIES, ["cookies.sqlite"]); + let places = getFileResource(types.HISTORY, ["places.sqlite", "places.sqlite-wal"]); + let cookies = getFileResource(types.COOKIES, ["cookies.sqlite", "cookies.sqlite-wal"]); let passwords = getFileResource(types.PASSWORDS, - ["signons.sqlite", "key3.db"]); + ["signons.sqlite", "logins.json", "key3.db"]); let formData = getFileResource(types.FORMDATA, ["formhistory.sqlite"]); let bookmarksBackups = getFileResource(types.OTHERDATA, [PlacesBackups.profileRelativeFolderPath]); |