
Loading…
Need a stale page store janitor: found entries with no tab counterparts #455
gorhill
commented
gorhill
commented
Ok, confirmed, if "Predict network actions to improve page load performance" is enabled, this will causes stale page store entries when searching a term in the search bar.
- Have "Predict network actions to improve page load performance" enabled
- Open new tab
- Enter "allo" in address bar
- Close tab
- Open extension's background page and enter
µBlock.pageStoresin console - Result: there is a page store entry for
http://www.allo.com/
It appears Chromium will automatically load the first link of result in an off-screen tab, which will never receive a tabs.onRemove() event, and as a consequence the page store entry (and all associated data structures) will occupy memory needlessly forever.
Need to fix ASAP, as I suspect that most users do not disable the "Predict network actions..." setting (I personally think everybody should disable it).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suspect this might be caused by the browser's "Predict network actions to improve page load performance" setting. I suspect the browser may create/dispose of tabs internally which are never really rendered and thus never go through the
chrome.tabs.onRemovedevent, and as a consequence never removed from memory.At this point the simplest way to address the issue is to have a janitor which find and dispose of stale page store entries.