mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57:30 +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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,6 +247,10 @@ pref("dom.compartment_per_addon", true);
|
|||
// of content viewers to cache based on the amount of available memory.
|
||||
pref("browser.sessionhistory.max_total_viewers", -1);
|
||||
|
||||
// Whether to store 'about:newtab' in the session history, disabled by default.
|
||||
// See https://github.com/MoonchildProductions/UXP/issues/719
|
||||
pref("browser.newtabpage.add_to_session_history", false);
|
||||
|
||||
pref("ui.use_native_colors", true);
|
||||
pref("ui.click_hold_context_menus", false);
|
||||
// Duration of timeout of incremental search in menus (ms). 0 means infinite.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue