From 716b990183625204558f52fd755fe1299cc5a938 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Sun, 22 Sep 2024 21:20:13 +0800 Subject: [PATCH] [Basilisk] ported from PM: Issue #1972 - Disable forcing GC on memory pressure. --- application/basilisk/app/profile/basilisk.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/basilisk/app/profile/basilisk.js b/application/basilisk/app/profile/basilisk.js index 2e709f70d8..ce2e6d5524 100644 --- a/application/basilisk/app/profile/basilisk.js +++ b/application/basilisk/app/profile/basilisk.js @@ -446,6 +446,9 @@ pref("general.warnOnAboutConfig", false); // Enable unlinking of ghost windows so they can be garbage collected. pref("browser.ghostbuster.enabled", true); +// Disable GC on memory pressure, avoid incessant recycling when websites +// misbehave. Should also avoid spurious GCs during ghostbusting. +pref("javascript.options.gc_on_memory_pressure", false); // This is the pref to control the location bar, change this to true to // force this - this makes the origin of popup windows more obvious to avoid