summaryrefslogtreecommitdiffstats
path: root/docshell/base/nsDocShell.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-22 15:53:24 +0200
committerGitHub <noreply@github.com>2018-08-22 15:53:24 +0200
commit00ae76ee758186bac11071900bd9215ce9e3307a (patch)
treee7a46cc4018254a090827a3c3959e4e91f7ec91e /docshell/base/nsDocShell.cpp
parent6ded9a001fddf501efb96b7e68dc9dabbe0ade22 (diff)
parentc6498fe688515413144376dc59b728905c72b34e (diff)
downloadUXP-00ae76ee758186bac11071900bd9215ce9e3307a.tar
UXP-00ae76ee758186bac11071900bd9215ce9e3307a.tar.gz
UXP-00ae76ee758186bac11071900bd9215ce9e3307a.tar.lz
UXP-00ae76ee758186bac11071900bd9215ce9e3307a.tar.xz
UXP-00ae76ee758186bac11071900bd9215ce9e3307a.zip
Merge pull request #720 from JustOff/PR_ShouldAddToSessionHistory
Update ShouldAddToSessionHistory() rules for "about:newtab" and "about:logopage"
Diffstat (limited to 'docshell/base/nsDocShell.cpp')
-rw-r--r--docshell/base/nsDocShell.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index 8eca47495..f4840297d 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -12281,7 +12281,9 @@ nsDocShell::ShouldAddToSessionHistory(nsIURI* aURI)
return false;
}
- if (buf.EqualsLiteral("blank") || buf.EqualsLiteral("newtab")) {
+ if (buf.EqualsLiteral("blank") || buf.EqualsLiteral("logopage") ||
+ (buf.EqualsLiteral("newtab") &&
+ !Preferences::GetBool("browser.newtabpage.add_to_session_history", false))) {
return false;
}
}