Closed Bug 1605162 Opened 4 years ago Closed 4 years ago

Pausing in Workers and Remote Frames should update context selector

Categories

(DevTools :: Debugger, task, P1)

task

Tracking

(Fission Milestone:M6c, firefox80 fixed)

RESOLVED FIXED
Firefox 80
Fission Milestone M6c
Tracking Status
firefox80 --- fixed

People

(Reporter: Honza, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(1 file)

When JS execution pauses in a worker or remote iframe the Context Selector should be properly updated to show the current (paused) context.

Honza

Priority: P3 → P2

Tracking dt-fission-m2-mvp bugs for Fission Nightly (M6)

Fission Milestone: --- → M6

Providing some specific STRs so, it's easier to test

  1. Open Content Toolbox on any we page e.g. http://janodvarko.cz/tests/debugger/workers/
  2. Select the Network panel and use the search feature - it starts a worker
  3. Find the resource://devtools/client/netmonitor/src/workers/search/search.js in the source tree
  4. Create BP in within the searchIinResource function
  5. Repeat search in the Network panel -> hit the BP
  6. Checkout the selector - it should show the right worker

Note that the selector is not even showing the network panel search worker in the list.

The Threads panel works as expected. It selects the worker properly and marks it as paused.

Honza

Summary: Pausing JS execution should update context selector → Pausing in Workers and Remote Frames should update context selector
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

This is working in the browser toolbox, the context is updated when we pause. (I think it's more because a thread is selected when we pause, and the context selector reacts to the thread change).

I started working on a test to ensure this works when we pause in a remote frame, but the debugger does not pause at all in a remote frame when fission is enabled. I can't use a worker to pause in either, because we don't show workers in the context selector in the content toolbox at the moment.

Jason, is there a bug filed to enable that (pause at breakpoints in remote frames when fission is enabled), which I can use to block this bug?

Flags: needinfo?(jlaster)

Comment 4 has a link to the patch in which I added the test

Status: ASSIGNED → NEW
Type: enhancement → task
Status: NEW → ASSIGNED
Priority: P2 → P1

Nicolas, this might be a good meta bug to use
https://bugzilla.mozilla.org/show_bug.cgi?id=1574350

Flags: needinfo?(jlaster)
Depends on: 1574350

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c)

Fission Milestone: M6 → M6c
Attachment #9141641 - Attachment description: Bug 1605162 - Test that context selector is updated when pausing in a remote frame. r=jlast. → Bug 1605162 - Test that context selector is updated when pausing in a remote frame. r=Honza.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a8d5d383ed08
Test that context selector is updated when pausing in a remote frame. r=Honza.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: