Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history

This commit is contained in:
JustOff 2018-08-22 13:40:19 +03:00 committed by Roy Tam
commit c402ee2148
2 changed files with 7 additions and 5 deletions

View file

@ -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;
}
}