auto-tab-discard icon indicating copy to clipboard operation
auto-tab-discard copied to clipboard

Discard a background tab if its memory usage ... grayed out on Firefox 131

Open Shineblind opened this issue 1 year ago • 4 comments

hey,

this feature is still grayed out in latest Firefox 131, Im not sure why, how do I enable performance.memory?

also would it be possible to add a different timer for high RAM usage pages? like 5 minutes while everything else has 25 minutes?

Shineblind avatar Oct 06 '24 15:10 Shineblind

The documentation says: "This feature is only available if your browser supports the performance.memory API." 🤔

doctorcolossus avatar May 14 '25 22:05 doctorcolossus

According to Mozilla, performance.memory is not supported in Firefox, is deprecated in general, and there is a newer API called measureUserAgentSpecificMemory() aiming to replace it which... seems not to be supported in Firefox either. 😞

doctorcolossus avatar May 14 '25 22:05 doctorcolossus

It looks like there was some effort to implement this in 2018, which was abandoned due to security concerns. Not sure if any newer alternatives exist. 🤷‍♂️ if anyone knows of one or has an idea, please share here!

doctorcolossus avatar May 14 '25 22:05 doctorcolossus

For anyone else interested, I've learned of some built-in Firefox browser settings which can apparently handle this:

  • https://superuser.com/a/1813361/91435
  • https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02

doctorcolossus avatar Jun 02 '25 20:06 doctorcolossus