gecko-dev/browser/modules
Toshihito Kikuchi ee072f14eb Bug 1701368 - Part6: Tab unloading precedes memory pressure events. r=gsvelto
This is the main part to address bug 1701368.

Before this patch, `nsAvailableMemoryWatcher` directly broadcasted a memory-pressure
event when we enter into a low-memory situation and `TabUnloader` unloaded a tab in
response to the memory-pressure message.  We want to decouple `TabUnloader` from
memory-pressure listeners because unloading a tab may solve a low-memory situation
alone.

With this patch, if `nsAvailableMemoryWatcher` detects a low-memory situation,
it invokes `TabUnloader` synchronously via an XPCOM interface.  If `TabUnloader`
unloads a tab, we don't do any further action.  If there is no discardable tab,
`TabUnloader` notifies back `nsAvailableMemoryWatcher` via another XPCOM interface,
so that `nsAvailableMemoryWatcher` can notify of a memory-pressure event.

Differential Revision: https://phabricator.services.mozilla.com/D117673
2021-07-06 22:30:59 +00:00
..
test Bug 1701368 - Part6: Tab unloading precedes memory pressure events. r=gsvelto 2021-07-06 22:30:59 +00:00
AboutNewTab.jsm
AppUpdater.jsm
AsanReporter.jsm
AsyncTabSwitcher.jsm
BrowserUIUtils.jsm
BrowserUsageTelemetry.jsm Bug 1711004 - get telemetry for tab-related items in the toolbar context menu, r=mossop 2021-05-25 10:42:22 +00:00
BrowserWindowTracker.jsm
ContentCrashHandlers.jsm
Discovery.jsm
EveryWindow.jsm
ExtensionsUI.jsm
FaviconLoader.jsm
HomePage.jsm
LaterRun.jsm
NewTabPagePreloading.jsm
OpenInTabsUtils.jsm
PageActions.jsm Bug 1711523 - remove private proton tracking flags in frontend modules, r=mak,emalysz,desktop-theme-reviewers,harry 2021-05-28 19:33:38 +00:00
PartnerLinkAttribution.jsm
PermissionUI.jsm Bug 1713578 - Removed leftover PermissionStateChange events. r=prathiksha 2021-07-05 10:10:23 +00:00
PingCentre.jsm
ProcessHangMonitor.jsm
Sanitizer.jsm Backed out changeset 5ca5387a57ce (bug 1712750) on Dev's request. CLOSED TREE 2021-07-06 19:26:21 +03:00
SelectionChangedMenulist.jsm
SiteDataManager.jsm Bug 1711869 - Part 1: Refactor SiteDataManager to key sites by base domain. r=johannh 2021-07-06 21:10:58 +00:00
SitePermissions.jsm
TabUnloader.jsm Bug 1701368 - Part6: Tab unloading precedes memory pressure events. r=gsvelto 2021-07-06 22:30:59 +00:00
TabsList.jsm
ThemeVariableMap.jsm Bug 1710643 - Use an slightly higher threshold to consider a color dark. r=Gijs 2021-05-12 22:52:28 +00:00
TransientPrefs.jsm
Windows8WindowFrameColor.jsm
WindowsJumpLists.jsm
WindowsPreviewPerTab.jsm
ZoomUI.jsm
moz.build
webrtcUI.jsm Bug 1706164 - Share screen and window sharing status from webrtcUI via sharedData. r=mconley 2021-05-24 16:50:19 +00:00