Open Bug 1270594 Opened 6 years ago Updated 5 years ago

consider exposing a chrome-only worker interface for performing tests

Categories

(Core :: DOM: Workers, defect, P3)

48 Branch
defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

Details

(Whiteboard: btpp-backlog)

In bug 1270161 I found that we were sometimes leaking the service worker WorkerPrivate thread until shutdown.  At shutdown, however, the WorkerPrivate gets killed and cleaned up normally.  So this kind of leak does not show up in leak reporting.

I could easily reproduce the conditions that cause this problem, but I don't have a way to test "is the worker thread still alive?".

What do people think about exposing a chrome-only interface that would let chrome script enumerate the worker threads and their script URLs?  I could then use this to verify that the particular service worker thread was dead.
Whiteboard: btpp-backlog
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.