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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user