mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history
This commit is contained in:
parent
a4755ad177
commit
c402ee2148
2 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue