diff options
author | Franklin DM <mrmineshafter17@gmail.com> | 2019-05-11 23:52:49 +0800 |
---|---|---|
committer | New Tobin Paradigm <email@mattatobin.com> | 2019-05-11 11:52:49 -0400 |
commit | 8b7d91e514ee8f5e3858bdbd8495b2d50600ca66 (patch) | |
tree | ddbaa85a6184c117144a44f7ea7cc7b91af85a75 /application | |
parent | 1b5c261b80f7603525df301764af7dc176203ccd (diff) | |
download | uxp-8b7d91e514ee8f5e3858bdbd8495b2d50600ca66.tar.gz |
Issue #1084 - Add null check for URL Bar in the writePlaceholder() method
Diffstat (limited to 'application')
-rw-r--r-- | application/palemoon/base/content/browser.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index 7672fa3a82..3f8a584bfa 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(); |