Only write the newtab URL if the machinery for it had previously been

initialized.

This prevents the URL being overwritten with e.g. about:logopage.
pull/7/head
wolfbeast 3 years ago committed by Roy Tam
parent f6f11db550
commit 2f3189f5a4
  1. 2
      application/palemoon/components/preferences/preferences.xul

@ -56,7 +56,7 @@
#endif
#endif
onunload="if (typeof gSecurityPane != 'undefined') gSecurityPane.syncAddonSecurityLevel();"
ondialogaccept="gNewtabUrl.writeNewtabUrl();">
ondialogaccept="if (typeof gTabsPane != 'undefined') gNewtabUrl.writeNewtabUrl();">
<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript" src="chrome://browser/content/preferences/newtaburl.js"/>

Loading…
Cancel
Save