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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user