mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 07:37:29 +09:00
[PALEMOON] Fix for loops in MigrationUtils.jsm
(SyntaxError: missing ] after element list)
This commit is contained in:
parent
eb05e51460
commit
243f9d9be0
1 changed files with 15 additions and 2 deletions
|
|
@ -176,7 +176,13 @@ this.MigratorPrototype = {
|
||||||
* @see nsIBrowserProfileMigrator
|
* @see nsIBrowserProfileMigrator
|
||||||
*/
|
*/
|
||||||
getMigrateData: function MP_getMigrateData(aProfile) {
|
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);
|
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");
|
throw new Error("migrate called for a non-existent source");
|
||||||
|
|
||||||
if (aItems != Ci.nsIBrowserProfileMigrator.ALL)
|
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.
|
// Called either directly or through the bookmarks import callback.
|
||||||
function doMigrate() {
|
function doMigrate() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue