summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-09 08:33:14 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-09 08:33:14 -0400
commit297eabaa99472ad93f742c2f46e3eac21f252ead (patch)
treed603b7b2568cfab97bf11ea0053d3eccf64c2b95 /application
parent0d0cf693ac1d8c9429959a41c118e335d0d94a55 (diff)
downloadUXP-297eabaa99472ad93f742c2f46e3eac21f252ead.tar
UXP-297eabaa99472ad93f742c2f46e3eac21f252ead.tar.gz
UXP-297eabaa99472ad93f742c2f46e3eac21f252ead.tar.lz
UXP-297eabaa99472ad93f742c2f46e3eac21f252ead.tar.xz
UXP-297eabaa99472ad93f742c2f46e3eac21f252ead.zip
[PALEMOON] Fix for loops in MigrationUtils.jsm
(SyntaxError: missing ] after element list)
Diffstat (limited to 'application')
-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() {