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.
This commit is contained in:
wolfbeast 2019-03-25 17:47:16 +01:00 committed by Roy Tam
commit 2f3189f5a4

View file

@ -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"/>