Closed Bug 1595964 Opened 6 years ago Closed 6 years ago

Expose mEvaluatingWorker to devtools

Categories

(Core :: DOM: Service Workers, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: asuth, Assigned: bhackett1024)

References

Details

Attachments

(3 files)

In bug 1228277 we added mEvaluatingWorker to ServiceWorkerRegistrationInfo, but we failed to expose it via our XPCOM interfaces that are consumed by devtools. This is causing trouble for devtools where registrations appear to have inconsistent state as exposed by the scriptSpec getter on nsIServiceWorkerRegistrationInfo.

We should:

This then also wants devtools fixups enhancements including:

I may be missing other devtools follow-ups that would be appropriate beyond making listAllWorkers() happy.

Priority: -- → P3

We have this bug in the debugger, in which the fake registrations that listAllWorkers does would cause trouble when we have more than 1 service worker https://bugzilla.mozilla.org/show_bug.cgi?id=1598047

One this bug it's fixed, it'd probably fix the root cause for the debugger bug, so let's take that into account when we make listAllWorkers aware of the evaluating state.

Assignee: nobody → bhackett1024

This is also necessary for bug 1596939. We want to pause service workers early on so that the debugger can attach and breakpoints in the service worker can be hit reliably, but our existing mechanism for normal workers pauses the workers before their main script has started executing. This means that the service worker's evaluating worker will be set, but not its installing/waiting/active worker, and the registration won't have the information the debugger needs to attach to the paused worker.

Blocks: 1596939
Attachment #9110826 - Attachment description: Bug 1595964 Part 1 - Add nsIServiceWorkerManager.evaluatingWorker, r=asuth. → Bug 1595964 Part 1 - Add nsIServiceWorkerRegistrationInfo.evaluatingWorker, r=asuth.
Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d1c93f700b8c Part 1 - Add nsIServiceWorkerRegistrationInfo.evaluatingWorker, r=asuth. https://hg.mozilla.org/integration/autoland/rev/4f538e6c6dcc Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes. https://hg.mozilla.org/integration/autoland/rev/65c870147654 Part 3 - Update tests for evaluatingWorker, r=asuth.
Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cdbe253ae87b Part 1 - Add nsIServiceWorkerRegistrationInfo.evaluatingWorker, r=asuth. https://hg.mozilla.org/integration/autoland/rev/18ddd988d27b Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes. https://hg.mozilla.org/integration/autoland/rev/053b0bb00fed Part 3 - Update tests for evaluatingWorker, r=asuth.
Flags: needinfo?(bhackett1024)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: