1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

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
parent a4755ad177
commit c402ee2148
2 changed files with 7 additions and 5 deletions
+3 -5
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;
}
}