Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika

Depends on D67631

Differential Revision: https://phabricator.services.mozilla.com/D67632
This commit is contained in:
Andreas Farre
2020-04-07 15:16:33 +00:00
parent c76bc4f1c8
commit 4ee379404b
70 changed files with 219 additions and 169 deletions

View File

@@ -8,6 +8,7 @@
#include "mozilla/DebugOnly.h"
#include "mozilla/Encoding.h"
#include "mozilla/SchedulerGroup.h"
#include "nsContentUtils.h"
#include "nsHtml5Tokenizer.h"
#include "nsIHttpChannel.h"
@@ -19,7 +20,6 @@
#include "nsIDocShell.h"
#include "nsIScriptError.h"
#include "mozilla/Preferences.h"
#include "mozilla/SystemGroup.h"
#include "mozilla/StaticPrefs_intl.h"
#include "mozilla/StaticPrefs_html5.h"
#include "mozilla/UniquePtrExtensions.h"
@@ -1121,8 +1121,8 @@ nsresult nsHtml5StreamParser::OnStartRequest(nsIRequest* aRequest) {
// the request.
nsCOMPtr<nsIRunnable> runnable =
new MaybeRunCollector(mExecutor->GetDocument()->GetDocShell());
mozilla::SystemGroup::Dispatch(mozilla::TaskCategory::GarbageCollection,
runnable.forget());
mozilla::SchedulerGroup::Dispatch(
mozilla::TaskCategory::GarbageCollection, runnable.forget());
}
}