diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-25 17:47:16 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-25 17:47:16 +0100 |
commit | eb77e289bbe056b58051db0fa868e95da803aa0a (patch) | |
tree | d3ea4f6297d90f7918092a6cc4bcb030f7348481 | |
parent | 9fc25801fdae8a88e2baa68bb500b24e53d9d8bf (diff) | |
download | uxp-eb77e289bbe056b58051db0fa868e95da803aa0a.tar.gz |
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.
-rw-r--r-- | application/palemoon/components/preferences/preferences.xul | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/palemoon/components/preferences/preferences.xul b/application/palemoon/components/preferences/preferences.xul index a1d9c8cf72..2b7fd9ded5 100644 --- a/application/palemoon/components/preferences/preferences.xul +++ b/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"/> |