Bug 1185012 - followup, update the URL used for the first-run-on-windows10 page. r=MattN

This commit is contained in:
Jared Wein 2015-07-21 22:47:32 -04:00
parent 7340b1d326
commit 0ffe2b5320
2 changed files with 4 additions and 2 deletions

View File

@ -432,6 +432,9 @@ pref("browser.search.redirectWindowsSearch", true);
pref("browser.search.redirectWindowsSearch", false);
#endif
pref("browser.usedOnWindows10", false);
pref("browser.usedOnWindows10.introURL", "https://www.mozilla.org/%LOCALE%/firefox/windows-10/welcome/?utm_source=firefox-browser&utm_medium=firefox-browser");
pref("browser.sessionhistory.max_entries", 50);
// Built-in default permissions.

View File

@ -552,10 +552,9 @@ nsBrowserContentHandler.prototype = {
let platformVersion = Services.sysinfo.getProperty("version");
if (AppConstants.platform == "win" &&
Services.vc.compare(platformVersion, "10") == 0 &&
Services.prefs.getPrefType("browser.usedOnWindows10") == Services.prefs.PREF_BOOL &&
!Services.prefs.getBoolPref("browser.usedOnWindows10")) {
Services.prefs.setBoolPref("browser.usedOnWindows10", true);
let firstUseOnWindows10URL = Services.urlFormatter.formatURL("https://www.mozilla.org/%LOCALE%/firefox/windows10/");
let firstUseOnWindows10URL = Services.urlFormatter.formatURLPref("browser.usedOnWindows10.introURL");
if (firstUseOnWindows10URL && firstUseOnWindows10URL.length) {
if (overridePage) {