From de50d15d2800e947fb800a9a318969cebddceb67 Mon Sep 17 00:00:00 2001 From: JustOff Date: Wed, 22 Aug 2018 13:40:19 +0300 Subject: Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history --- docshell/base/nsDocShell.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'docshell/base') diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 21234b896..a3d42c679 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -12281,11 +12281,9 @@ nsDocShell::ShouldAddToSessionHistory(nsIURI* aURI) return false; } - if (buf.EqualsLiteral("blank") || buf.EqualsLiteral("logopage") -#ifndef MC_PALEMOON - || buf.EqualsLiteral("newtab") -#endif - ) { + if (buf.EqualsLiteral("blank") || buf.EqualsLiteral("logopage") || + buf.EqualsLiteral("newtab") && + !Preferences::GetBool("browser.newtabpage.add_to_session_history", false)) { return false; } } -- cgit v1.2.3