mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1861713 - Fix a nullptr crash in WebTaskScheduler r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D192334
This commit is contained in:
parent
42234038bf
commit
7f1ec478c2
@ -324,10 +324,11 @@ void WebTaskScheduler::Disconnect() {
|
||||
}
|
||||
|
||||
void WebTaskScheduler::RunTaskSignalPriorityChange(TaskSignal* aTaskSignal) {
|
||||
WebTaskQueue* const taskQueue = mDynamicPriorityTaskQueues.Get(aTaskSignal);
|
||||
MOZ_ASSERT(taskQueue);
|
||||
if (WebTaskQueue* const taskQueue =
|
||||
mDynamicPriorityTaskQueues.Get(aTaskSignal)) {
|
||||
taskQueue->SetPriority(aTaskSignal->Priority());
|
||||
}
|
||||
}
|
||||
|
||||
WebTaskQueue& WebTaskScheduler::SelectTaskQueue(
|
||||
const Optional<OwningNonNull<AbortSignal>>& aSignal,
|
||||
|
Loading…
Reference in New Issue
Block a user