summaryrefslogtreecommitdiffstats
path: root/docshell/base
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-08-22 13:40:19 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-08-22 13:40:19 +0300
commitde50d15d2800e947fb800a9a318969cebddceb67 (patch)
tree349cfd35c9ec529612969a219b8df53eb7b9856c /docshell/base
parentd39cf6a1125c4103bd98e0c26c04233317c4ec63 (diff)
downloadUXP-de50d15d2800e947fb800a9a318969cebddceb67.tar
UXP-de50d15d2800e947fb800a9a318969cebddceb67.tar.gz
UXP-de50d15d2800e947fb800a9a318969cebddceb67.tar.lz
UXP-de50d15d2800e947fb800a9a318969cebddceb67.tar.xz
UXP-de50d15d2800e947fb800a9a318969cebddceb67.zip
Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history
Diffstat (limited to 'docshell/base')
-rw-r--r--docshell/base/nsDocShell.cpp8
1 files changed, 3 insertions, 5 deletions
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;
}
}