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:
@@ -68,7 +68,7 @@ nsresult FileSystemUtils::DispatchRunnable(
|
||||
if (!aGlobal) {
|
||||
target = GetMainThreadSerialEventTarget();
|
||||
} else {
|
||||
target = aGlobal->EventTargetFor(TaskCategory::Other);
|
||||
target = aGlobal->SerialEventTarget();
|
||||
}
|
||||
|
||||
MOZ_ASSERT(target);
|
||||
|
||||
Reference in New Issue
Block a user