mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1274007
- Firefox Refresh shouldn't show the 'Firefox on Windows 10' start page when you refresh on Windows 10, r=MattN
MozReview-Commit-ID: 68CaJR5IsE1 --HG-- extra : rebase_source : 3a6a23ee6eab7845bc26ac42572a748f0ed7300f
This commit is contained in:
parent
1512411552
commit
b067cf32c4
@ -29,6 +29,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "FileUtils",
|
||||
"resource://gre/modules/FileUtils.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "ProfileAge",
|
||||
"resource://gre/modules/ProfileAge.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||
"resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
|
||||
function FirefoxProfileMigrator() {
|
||||
@ -148,6 +150,11 @@ FirefoxProfileMigrator.prototype._getResourcesInternal = function(sourceProfileD
|
||||
// session with the "what's new" page:
|
||||
Services.prefs.setCharPref("browser.startup.homepage_override.mstone", mstone);
|
||||
Services.prefs.setCharPref("browser.startup.homepage_override.buildID", buildID);
|
||||
// Also set the Windows 10 pref to avoid the win10 intro page to show up
|
||||
// on startup.
|
||||
if (AppConstants.isPlatformAndVersionAtLeast("win", "10")) {
|
||||
Services.prefs.setBoolPref("browser.usedOnWindows10", true);
|
||||
}
|
||||
// It's too early in startup for the pref service to have a profile directory,
|
||||
// so we have to manually tell it where to save the prefs file.
|
||||
let newPrefsFile = currentProfileDir.clone();
|
||||
|
Loading…
Reference in New Issue
Block a user