From eb77e289bbe056b58051db0fa868e95da803aa0a Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 25 Mar 2019 17:47:16 +0100 Subject: 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. --- application/palemoon/components/preferences/preferences.xul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/palemoon/components') diff --git a/application/palemoon/components/preferences/preferences.xul b/application/palemoon/components/preferences/preferences.xul index a1d9c8cf7..2b7fd9ded 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();">