Open Bug 1800659 Opened 4 months ago Updated 12 days ago

WorkerRunnable/WorkerDebuggeeRunnable refactoring (eliminate cancellation and therefore ClearMainEventQueue, eliminate busy count)

Categories

(Core :: DOM: Workers, enhancement, P2)

enhancement

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: nobody → echuang
Severity: -- → S3
Priority: -- → P2
Depends on: 1769913
See Also: → 1769913
Summary: WorkerRunnable/WorkerDebuggeeRunnable refactoring → WorkerRunnable/WorkerDebuggeeRunnable refactoring (eliminate cancellation and therefore ClearMainEventQueue, eliminate busy count)
You need to log in before you can comment on or make changes to this bug.