mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
[DOM] Check if WorkerRunnable::Run runs on top of WorkerThreadPrimaryRunnable::Run in a worker thread.
This commit is contained in:
parent
58525f05f2
commit
d1b0f59de4
2 changed files with 17 additions and 1 deletions
|
|
@ -5161,7 +5161,9 @@ WorkerPrivate::ScheduleDeletion(WorkerRanOrNot aRanOrNot)
|
|||
if (WorkerRan == aRanOrNot) {
|
||||
nsIThread* currentThread = NS_GetCurrentThread();
|
||||
MOZ_ASSERT(currentThread);
|
||||
MOZ_ASSERT(!NS_HasPendingEvents(currentThread));
|
||||
// On the worker thread WorkerRunnable will refuse to run if not nested
|
||||
// on top of a WorkerThreadPrimaryRunnable.
|
||||
Unused << NS_WARN_IF(NS_HasPendingEvents(currentThread));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue