summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/migration/MigrationUtils.jsm
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-11 17:45:54 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-11 17:45:54 +0200
commit597fb9fbe387378185431e1900ebe6f05ca09fbf (patch)
tree6adbe3cfb37ec4fca51003633bea9334f4822be5 /application/palemoon/components/migration/MigrationUtils.jsm
parenteac3e641110ce26cae69a53bb5920c6d725392ec (diff)
parentac05ab923af8bc5b0c077fe3a271492af19dbea8 (diff)
downloadUXP-597fb9fbe387378185431e1900ebe6f05ca09fbf.tar
UXP-597fb9fbe387378185431e1900ebe6f05ca09fbf.tar.gz
UXP-597fb9fbe387378185431e1900ebe6f05ca09fbf.tar.lz
UXP-597fb9fbe387378185431e1900ebe6f05ca09fbf.tar.xz
UXP-597fb9fbe387378185431e1900ebe6f05ca09fbf.zip
Rebase on master
Diffstat (limited to 'application/palemoon/components/migration/MigrationUtils.jsm')
-rw-r--r--application/palemoon/components/migration/MigrationUtils.jsm17
1 files changed, 15 insertions, 2 deletions
diff --git a/application/palemoon/components/migration/MigrationUtils.jsm b/application/palemoon/components/migration/MigrationUtils.jsm
index fcd73a798..882c7cf32 100644
--- a/application/palemoon/components/migration/MigrationUtils.jsm
+++ b/application/palemoon/components/migration/MigrationUtils.jsm
@@ -176,7 +176,13 @@ this.MigratorPrototype = {
* @see nsIBrowserProfileMigrator
*/
getMigrateData: function MP_getMigrateData(aProfile) {
- let types = [r.type for each (r in this._getMaybeCachedResources(aProfile))];
+ // Tycho: let types = [r.type for each (r in this._getMaybeCachedResources(aProfile))];
+ let types = [];
+
+ for each (r in this._getMaybeCachedResources(aProfile)) {
+ types.push(r.type);
+ }
+
return types.reduce(function(a, b) a |= b, 0);
},
@@ -192,7 +198,14 @@ this.MigratorPrototype = {
throw new Error("migrate called for a non-existent source");
if (aItems != Ci.nsIBrowserProfileMigrator.ALL)
- resources = [r for each (r in resources) if (aItems & r.type)];
+ // Tycho: resources = [r for each (r in resources) if (aItems & r.type)];
+ resources = [];
+
+ for each (r in resources) {
+ if (aItems & r.type) {
+ resources.push(r);
+ }
+ }
// Called either directly or through the bookmarks import callback.
function doMigrate() {