Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu

Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
This commit is contained in:
Emilio Cobos Álvarez
2023-10-10 08:51:12 +00:00
parent 8fda754884
commit d02e297b2d
214 changed files with 595 additions and 1481 deletions

View File

@@ -68,7 +68,7 @@ nsresult FileSystemUtils::DispatchRunnable(
if (!aGlobal) {
target = GetMainThreadSerialEventTarget();
} else {
target = aGlobal->EventTargetFor(TaskCategory::Other);
target = aGlobal->SerialEventTarget();
}
MOZ_ASSERT(target);