summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/nsBrowserContentHandler.js
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 18:12:40 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5 (patch)
treef2f676dbca9e8beb16895e97d733bc9de70ecd07 /application/palemoon/components/nsBrowserContentHandler.js
parent7d1126fad325e889559b1f9113cbbb17d49842fa (diff)
downloadUXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.gz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.lz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.xz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.zip
Issue #991 Part 1: Pale Moon
Diffstat (limited to 'application/palemoon/components/nsBrowserContentHandler.js')
-rw-r--r--application/palemoon/components/nsBrowserContentHandler.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/application/palemoon/components/nsBrowserContentHandler.js b/application/palemoon/components/nsBrowserContentHandler.js
index 6a75b40f2..e7f1414c2 100644
--- a/application/palemoon/components/nsBrowserContentHandler.js
+++ b/application/palemoon/components/nsBrowserContentHandler.js
@@ -100,20 +100,14 @@ const OVERRIDE_NEW_BUILD_ID = 3;
* OVERRIDE_NONE otherwise.
*/
function needHomepageOverride(prefb) {
- var savedmstone = null;
- try {
- savedmstone = prefb.getCharPref("browser.startup.homepage_override.mstone");
- } catch (e) {}
+ var savedmstone = prefb.getCharPref("browser.startup.homepage_override.mstone", "");
if (savedmstone == "ignore")
return OVERRIDE_NONE;
var mstone = Services.appinfo.platformVersion;
- var savedBuildID = null;
- try {
- savedBuildID = prefb.getCharPref("browser.startup.homepage_override.buildID");
- } catch (e) {}
+ var savedBuildID = prefb.getCharPref("browser.startup.homepage_override.buildID", "");
var buildID = Services.appinfo.platformBuildID;
@@ -550,10 +544,7 @@ nsBrowserContentHandler.prototype = {
// URL if we do end up showing an overridePage. This makes it possible
// to have the overridePage's content vary depending on the version we're
// upgrading from.
- let old_mstone = "unknown";
- try {
- old_mstone = Services.prefs.getCharPref("browser.startup.homepage_override.mstone");
- } catch (ex) {}
+ let old_mstone = Services.prefs.getCharPref("browser.startup.homepage_override.mstone", "unknown");
let override = needHomepageOverride(prefb);
if (override != OVERRIDE_NONE) {
switch (override) {