mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1630304: Remove invalid assertion in CanvasThreadHolder::StaticRelease. r=mattwoodrow
TaskQueues hold onto their nsIEventTarget (in this case mCanvasWorkers) until after they resolve their shutdown promise, which is what causes CanvasThreadHolder::StaticRelease to be submitted to the compositor thread. So this assertion can't be guaranteed. Differential Revision: https://phabricator.services.mozilla.com/D71176
This commit is contained in:
parent
0c95cd8924
commit
f03c78362b
@ -81,11 +81,6 @@ void CanvasThreadHolder::StaticRelease(
|
||||
|
||||
auto lockedCanvasThreadHolder = sCanvasThreadHolder.Lock();
|
||||
if (lockedCanvasThreadHolder.ref()->mRefCnt == 1) {
|
||||
MOZ_ASSERT(lockedCanvasThreadHolder.ref()
|
||||
->mCanvasWorkers.forget()
|
||||
.take()
|
||||
->Release() == 0,
|
||||
"There should be no other references to mCanvasWorkers.");
|
||||
lockedCanvasThreadHolder.ref() = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user