From 0b7900d2bfd6a1dcaafeb71629e29bb4c9c2a5c2 Mon Sep 17 00:00:00 2001 From: "bugzilla%standard8.plus.com" Date: Sat, 29 Sep 2007 17:35:08 +0000 Subject: [PATCH] Bug 396033 Homepage migration not working properly in SeaMonkey. r=Neil --- suite/profile/migration/migration.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/suite/profile/migration/migration.js b/suite/profile/migration/migration.js index 4d9a6f2933c..4e14a85fe40 100644 --- a/suite/profile/migration/migration.js +++ b/suite/profile/migration/migration.js @@ -435,6 +435,11 @@ var MigrationWizard = { targetPrefsFile.append("prefs.js"); + // If the target prefs file doesn't exist, then we can't have a + // homepage set in the target profile. + if (!targetPrefsFile.exists()) + return false; + var prefSvc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefSvc.resetPrefs();