Closed Bug 1722543 Opened 3 years ago Closed 3 years ago

browser_dbg-windowless-service-workers.js fails with server targets

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: ochameau, Assigned: nchevobbe)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

The test timesout of this line:
https://searchfox.org/mozilla-central/rev/072710086ddfe25aa2962c8399fefb2304e8193b/devtools/client/debugger/test/mochitest/browser_dbg-windowless-service-workers.js#49

 await waitForPaused(dbg);

For some reason, the debugger no longer pause in the SW on reload. Or at least the frontend doesn't report the pause.

Given that this feature is preffed off, we could consider forcing server target to false in this test in order to toggle the server target sooner than later.

Whiteboard: dt-fission-future
Fission Milestone: --- → MVP
Whiteboard: dt-fission-future → dt-fission-m3-mvp

The script itself seems to pause okay, but we don't get the information.
From some logging, it looks like the paused event that is sent from the actor is not received by the associated front / the THREAD_STATE legacy listener
attachAndInitThread is called after the event is emitted which probably explain this issue.
I'm trying to see how this could be fixed

This makes browser_dbg-windowless-service-workers.js pass
with server side target switching.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96d1e40298c0
[devtools] Don't actually destroy service worker targets on target switching. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: