fune/browser/components/pagedata
Dave Townsend 619ba9cf38 Bug 1757725: Expire page data in memory when no longer needed. r=Standard8
Currently we cache page data in memory until the browser is closed but this is
too long. We know there could be a couple of consumers of page data, snapshots
and AVM being two so we want to keep any discovered data in memory until we
know that no-one is interested anymore.

This adds a cache and a way for an "actor" (ugh!) to register interest in a url.
As long as there is an actor interested in a url any data for that url will be
cached in memory.

The idea is that when we start tracking a new interaction we start caching any
data for that url. When interactions have been flushed to disk and we've made
any decision about snapshotting we allow the data to expire.

We also by default keep data in the cache until the browser it came from is
destroyed.

Later the AVM can keep a page's data alive until it no longer exists in the
river.

Differential Revision: https://phabricator.services.mozilla.com/D140056
2022-03-18 09:46:06 +00:00
..
docs
schemas
tests Bug 1757725: Expire page data in memory when no longer needed. r=Standard8 2022-03-18 09:46:06 +00:00
.eslintrc.js
jar.mn
moz.build Bug 1740539: Get siteName, image and description from twitter cards. r=Standard8 2021-11-16 14:54:09 +00:00
OpenGraphPageData.jsm
PageDataChild.jsm
PageDataParent.jsm
PageDataSchema.jsm Bug 1740539: Get siteName, image and description from twitter cards. r=Standard8 2021-11-16 14:54:09 +00:00
PageDataService.jsm Bug 1757725: Expire page data in memory when no longer needed. r=Standard8 2022-03-18 09:46:06 +00:00
SchemaOrgPageData.jsm Bug 1759548 - MR2-1988 - Support some kind of lazy loading of images in schema.org definitions. r=mossop 2022-03-16 15:27:32 +00:00
TwitterPageData.jsm Bug 1740539: Get siteName, image and description from twitter cards. r=Standard8 2021-11-16 14:54:09 +00:00