summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
diff options
context:
space:
mode:
authorFranklin DM <mrmineshafter17@gmail.com>2019-05-11 23:52:49 +0800
committerNew Tobin Paradigm <email@mattatobin.com>2019-05-11 11:52:49 -0400
commit8b7d91e514ee8f5e3858bdbd8495b2d50600ca66 (patch)
treeddbaa85a6184c117144a44f7ea7cc7b91af85a75 /application/palemoon/base
parent1b5c261b80f7603525df301764af7dc176203ccd (diff)
downloadUXP-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.tar
UXP-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.tar.gz
UXP-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.tar.lz
UXP-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.tar.xz
UXP-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.zip
Issue #1084 - Add null check for URL Bar in the writePlaceholder() method
Diffstat (limited to 'application/palemoon/base')
-rw-r--r--application/palemoon/base/content/browser.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index 7672fa3a8..3f8a584bf 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -412,6 +412,10 @@ var gURLBarSettings = {
},
writePlaceholder: function() {
+ if (!gURLBar) {
+ return;
+ }
+
let attribute = "placeholder";
let prefs = this.prefSuggests.map(pref => {
return this.prefSuggest + pref;
@@ -3471,6 +3475,7 @@ function BrowserToolboxCustomizeDone(aToolboxChanged) {
// Update the urlbar
if (gURLBar) {
+ gURLBarSettings.writePlaceholder();
URLBarSetURI();
XULBrowserWindow.asyncUpdateUI();
BookmarkingUI.updateStarState();