mirror of
https://github.com/zen-browser/desktop.git
synced 2026-06-19 09:32:33 +00:00
* chore: Sync upstream to `Firefox 147.0` * chore: Continued migration, b=no-bug, c=tests * chore: Finish migration without testing, b=no-bug, c=scripts, tabs, media, common, split-view * feat: Finish migration, b=no-bug, c=common, compact-mode, split-view, workspaces * feat: Finish basic migration, b=no-bug, c=kbs, common, folders * feat: Update surfer, b=no-bug, c=scripts
14 lines
585 B
C++
14 lines
585 B
C++
diff --git a/browser/components/tabbrowser/TabUnloader.sys.mjs b/browser/components/tabbrowser/TabUnloader.sys.mjs
|
|
index aefccef39f0b81176a5710a794e8a5e2650d6507..e073c65790df6d55e827a4f4596199f4f1a99a57 100644
|
|
--- a/browser/components/tabbrowser/TabUnloader.sys.mjs
|
|
+++ b/browser/components/tabbrowser/TabUnloader.sys.mjs
|
|
@@ -52,7 +52,7 @@ let CRITERIA_WEIGHT = 1;
|
|
*/
|
|
let DefaultTabUnloaderMethods = {
|
|
isNonDiscardable(tab, weight) {
|
|
- if (tab.undiscardable || tab.selected) {
|
|
+ if (tab.undiscardable || tab.selected || tab.zenModeActive) {
|
|
return weight;
|
|
}
|
|
|