WorkerRunnable/WorkerDebuggeeRunnable refactoring (eliminate cancellation and therefore ClearMainEventQueue, eliminate busy count)
Categories
(Core :: DOM: Workers, enhancement, P2)
Tracking
()
People
(Reporter: edenchuang, Assigned: edenchuang)
References
(Depends on 1 open bug)
Details
This is a bug for tracking our WorkRunnable refactoring.
According to https://mozilla-hub.atlassian.net/browse/FFXP-1949, the followings are the targets for this bug.
-
Eliminate cancellation from WorkerRunnables
-
Eliminate busy count in favor of just letting workerrefs and the existence of IPC actors keep a worker alive. Simplifies worker runnable too.
-
Distinguish WorkerRunnables meant to run on the worker thread from those meant to run on the main/parent thread by having a different base class (like WorkerParentRunnable), eliminating the need to have a (still) living worker when executed
https://bugzilla.mozilla.org/show_bug.cgi?id=1799173 shows the defects of our current implementation. And Worker's lifecycle would be much simpler after this refactoring.
Assignee | ||
Updated•4 months ago
|
Updated•12 days ago
|
Description
•