Bug 1683220 - Remove nsJSContext::MaybeRunNextCollectorSlice entirely r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D96209
This commit is contained in:
Steve Fink
2020-12-21 17:23:26 +00:00
parent 9a214af270
commit 3df2fad2b1
4 changed files with 0 additions and 92 deletions

View File

@@ -10400,11 +10400,6 @@ nsresult nsDocShell::OpenInitializedChannel(nsIChannel* aChannel,
rv = aURILoader->OpenURI(aChannel, aOpenFlags, this);
NS_ENSURE_SUCCESS(rv, rv);
// We're about to load a new page and it may take time before necko
// gives back any data, so main thread might have a chance to process a
// collector slice
nsJSContext::MaybeRunNextCollectorSlice(this, JS::GCReason::DOCSHELL);
// Success. Keep the initial ClientSource if it exists.
cleanupInitialClient.release();