summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
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/base
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/base')
-rw-r--r--application/palemoon/base/content/browser-syncui.js11
-rw-r--r--application/palemoon/base/content/tabbrowser.xml6
2 files changed, 3 insertions, 14 deletions
diff --git a/application/palemoon/base/content/browser-syncui.js b/application/palemoon/base/content/browser-syncui.js
index 67056e221..6fad03cdd 100644
--- a/application/palemoon/base/content/browser-syncui.js
+++ b/application/palemoon/base/content/browser-syncui.js
@@ -83,10 +83,7 @@ var gSyncUI = {
_wasDelayed: false,
_needsSetup: function SUI__needsSetup() {
- let firstSync = "";
- try {
- firstSync = Services.prefs.getCharPref("services.sync.firstSync");
- } catch (e) { }
+ let firstSync = Services.prefs.getCharPref("services.sync.firstSync", "");
return Weave.Status.checkSetup() == Weave.CLIENT_NOT_CONFIGURED ||
firstSync == "notReady";
},
@@ -285,11 +282,7 @@ var gSyncUI = {
if (!syncButton)
return;
- let lastSync;
- try {
- lastSync = Services.prefs.getCharPref("services.sync.lastSync");
- }
- catch (e) { };
+ let lastSync = Services.prefs.getCharPref("services.sync.lastSync");
if (!lastSync || this._needsSetup()) {
syncButton.removeAttribute("tooltiptext");
return;
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index 868179b5d..d9366f488 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -3628,11 +3628,7 @@
window.addEventListener("resize", this, false);
window.addEventListener("load", this, false);
- try {
- this._tabAnimationLoggingEnabled = Services.prefs.getBoolPref("browser.tabs.animationLogging.enabled");
- } catch (ex) {
- this._tabAnimationLoggingEnabled = false;
- }
+ this._tabAnimationLoggingEnabled = Services.prefs.getBoolPref("browser.tabs.animationLogging.enabled", false);
this._browserNewtabpageEnabled = Services.prefs.getBoolPref("browser.newtabpage.enabled");
]]>
</constructor>