From: Mike Hommey Date: Tue, 5 Jun 2012 08:57:06 +0200 Subject: Bug 756390 - Make the "Reset Firefox" feature more generic --- browser/components/migration/content/migration.js | 15 ++++++++++----- browser/components/migration/content/migration.xul | 2 +- .../migration/src/BrowserProfileMigrators.manifest | 2 +- .../components/migration/src/FirefoxProfileMigrator.js | 2 +- browser/components/migration/src/ProfileMigrator.js | 4 ++++ .../en-US/chrome/browser/migration/migration.dtd | 2 -- .../en-US/chrome/browser/migration/migration.properties | 11 +++++------ toolkit/content/aboutSupport.js | 8 ++++---- toolkit/content/jar.mn | 2 +- toolkit/content/resetProfile.js | 6 ++---- toolkit/profile/nsIProfileMigrator.idl | 10 +++++++++- toolkit/xre/nsAppRunner.cpp | 2 +- 83 files changed, 394 insertions(+), 382 deletions(-) diff --git a/browser/components/migration/content/migration.js b/browser/components/migration/content/migration.js index ffb0c34..442a5ff 100644 --- a/browser/components/migration/content/migration.js +++ b/browser/components/migration/content/migration.js @@ -314,7 +314,7 @@ var MigrationWizard = { } var bundle = 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 = bundle.getString("homePageMigrationPageTitle"); @@ -346,8 +346,8 @@ var MigrationWizard = { case "chrome": source = "sourceNameChrome"; break; - case "firefox": - source = "sourceNameFirefox"; + case "self": + source = "brand"; break; } @@ -357,8 +357,13 @@ var MigrationWizard = { var oldHomePageURL = this._migrator.sourceHomePageURL; if (oldHomePageURL && source) { - var bundle2 = document.getElementById("bundle"); - var appName = bundle2.getString(source); + var appName; + if (source == "brand") { + appName = bundle.GetStringFromName("brandFullName"); + } else { + var bundle2 = document.getElementById("bundle"); + appName = bundle2.getString(source); + } var oldHomePageLabel = bundle.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 f8653b1..f3ac62a 100644 --- a/browser/components/migration/content/migration.xul +++ b/browser/components/migration/content/migration.xul @@ -76,7 +76,7 @@ #endif #endif - +