>> I was under the impression that because e10s is only a single process for >all content (at least right now) a background tab can still negatively >affect the foreground tab. > >That's right, but we also tested e10s in the process-per-tab configuration
There are other options for background tab effects on foreground, though all have some sort of impact. (For example, you could 'freeze' background tabs more aggressively than we currently do. This may have some impact on functionality - we already limit timeouts, but IIRC we don't turn them off entirely, and other events still occur that we could defer until the tab is touched or ignore - but again, that could cause sites to break or make switching back problematic/annoying. However, I'm out of touch with the exact state of our 'freezing' of background tabs. And there are certainly sites where they'll eat your performance (eventually) unless you block everything. >> Have we ever considered building something like the unload tab addon into >the platform or Firefox directly? > >We have talked about it (BarTab Heavy is another example) and the code that >Yoric wrote for measuring per-compartment main-thread CPU-usage in >about:performance could be used for this. It's unclear how to prioritize it >though because doing 100% reliable heavy tab detection will require >non-trivial effort (see issues with slow-addon info bar) and the background >tab problem will mostly be mitigated by process-per-tab e10s. The problem with auto-unloaders is that you don't want that for some sites - real context or data can be lost. Yes, you can let users white-list things, but only (some) power users would even realize that this is an option or needed. I think serious care needs to be given when thinking of this as a default (or even as a particularly easy option). I think flagging sites as causing slowdown/etc is a great thing and good first step, which puts the control in the user's hands. A nice fire animation on the tab perhaps? ;-) Seems we used to have those in tinderbox.... >> https://addons.mozilla.org/en-US/firefox/addon/unloadtab/ >> >> """ >> An essential add-on for power users that have many tabs open. Curb your >> resource usage by unloading tabs that you haven't visited for a while. An >> unloaded tab is restored back to its original state when you need it again. >> """ "original state" likely doesn't include sites that dynamically modify themselves, which is a lot of sites. -- Randell Jesup, Mozilla Corp remove "news" for personal email _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform