Issue #1084 - Add null check for URL Bar in the writePlaceholder() method

pull/7/head
Franklin DM 3 years ago committed by Roy Tam
parent 37f0839a64
commit e164082a5a
  1. 5
      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();

Loading…
Cancel
Save