mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Bug 1348547 - ReleaseCachedProcesses() between aboutdebugging tests; r=gabor
This commit is contained in:
parent
7cc08b99a6
commit
181892f671
@ -433,5 +433,6 @@ function enableServiceWorkerDebugging() {
|
||||
["dom.ipc.processCount", 1],
|
||||
]};
|
||||
SpecialPowers.pushPrefEnv(options, done);
|
||||
Services.ppmm.releaseCachedProcesses();
|
||||
});
|
||||
}
|
||||
|
@ -746,6 +746,10 @@ ContentParent::IsMaxProcessCountReached(const nsAString& aContentProcessType)
|
||||
/*static*/ void
|
||||
ContentParent::ReleaseCachedProcesses()
|
||||
{
|
||||
if (!GetPoolSize(NS_LITERAL_STRING(DEFAULT_REMOTE_TYPE))) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We might want to extend this for other process types as well in the future...
|
||||
nsTArray<ContentParent*>& contentParents = GetOrCreatePool(NS_LITERAL_STRING(DEFAULT_REMOTE_TYPE));
|
||||
ContentProcessManager* cpm = ContentProcessManager::GetSingleton();
|
||||
|
Loading…
x
Reference in New Issue
Block a user