From: Mike Hommey Date: Tue, 5 Jun 2012 08:57:06 +0200 Subject: Bug 756390 - Make the "Reset Firefox" feature more generic diff --git a/browser/components/migration/content/migration.js b/browser/components/migration/content/migration.js index 0e8ccf5..fa46c08 100644 --- a/browser/components/migration/content/migration.js +++ b/browser/components/migration/content/migration.js @@ -249,7 +249,7 @@ var MigrationWizard = { } var brandBundle = document.getElementById("brandBundle"); - // These strings don't exist when not using official branding. If that's + // These strings may not exist when not using official branding. If that's // the case, just skip this page. try { var pageTitle = brandBundle.getString("homePageMigrationPageTitle"); @@ -281,8 +281,8 @@ var MigrationWizard = { case "chrome": source = "sourceNameChrome"; break; - case "firefox": - source = "sourceNameFirefox"; + case "self": + source = "brand"; break; } @@ -292,7 +292,12 @@ var MigrationWizard = { var oldHomePageURL = this._migrator.sourceHomePageURL; if (oldHomePageURL && source) { - var appName = MigrationUtils.getLocalizedString(source); + var appName; + if (source == "brand") { + appName = brandBundle.GetStringFromName("brandFullName"); + } else { + appName = MigrationUtils.getLocalizedString(source); + } var oldHomePageLabel = brandBundle.getFormattedString("homePageImport", [appName]); var oldHomePage = document.getElementById("oldHomePage"); diff --git a/browser/components/migration/content/migration.xul b/browser/components/migration/content/migration.xul index f030756..23e37ff 100644 --- a/browser/components/migration/content/migration.xul +++ b/browser/components/migration/content/migration.xul @@ -42,7 +42,7 @@ #elifdef XP_UNIX #endif - +