mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 950405: add a temporary whatsnew page on Nightly for Australis survey, r=Unfocused
This commit is contained in:
parent
14764a85a4
commit
11fd5bda22
@ -583,6 +583,25 @@ nsBrowserContentHandler.prototype = {
|
||||
|
||||
overridePage = overridePage.replace("%OLD_VERSION%", old_mstone);
|
||||
break;
|
||||
|
||||
// Temporary case for Australis whatsnew
|
||||
case OVERRIDE_NEW_BUILD_ID:
|
||||
let locale = "en-US";
|
||||
try {
|
||||
locale = Services.prefs.getCharPref("general.useragent.locale");
|
||||
} catch (e) {}
|
||||
|
||||
let showedAustralisWhatsNew = false;
|
||||
try {
|
||||
showedAustralisWhatsNew = Services.prefs.getBoolPref("browser.showedAustralisWhatsNew");
|
||||
} catch(e) {}
|
||||
|
||||
// Show the Australis whatsnew page for en-US if we haven't yet shown it
|
||||
if (!showedAustralisWhatsNew && locale == "en-US") {
|
||||
Services.prefs.setBoolPref("browser.showedAustralisWhatsNew", true);
|
||||
overridePage = "https://www.mozilla.org/en-US/firefox/29.0a1/whatsnew/";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (ex) {}
|
||||
|
Loading…
Reference in New Issue
Block a user