Closed Bug 1720115 Opened 4 years ago Closed 4 years ago

The Debugger tab should be properly unhighlighted when pausing between frames

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

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

People

(Reporter: bomsy, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

Prefs:

  • fission.autostart => true
  • devtools.target-switching.server.enabled => true
  • fission.bfcacheInParent => true

STR

  1. Load http://janodvarko.cz/tests/fission/case9/index.html (two iframes loaded from the same remote domain)
  2. Create BP in odvarko.com/tests/fission/case9/iframe1.js, line 6
  3. Create BP in odvarko.com/tests/fission/case9/iframe2.js, line 6
  4. Click the the POST1 button (in the first frame), Debugger should pause, step over one time
  5. Click the the POST2 button (in the second frame), Debugger should pause in the second frame, step over one time & resume
  6. Switch to the Test Frame #1 thread and resume.
  7. The Debugger tab is still highlighted =>BUG

I think that switching the contexts through the Threads panel should be involved. So, if the steps above don't work for you. Try to play a bit with the UI (context switching, stepping) before resuming both.

Honza

No longer depends on: 1717807
See Also: → 1717807
Whiteboard: dt-fission-m3-mvp → dt-fission-m3-triage

The issue here seems to be that we do not include the resumeLimit reason here(e.g is set when a step-over is clicked) which causes the pauseTargets count here to break and go into -ve values, so this never gets called and unhighlight does not happen.

Hi Honza,
Could you confirm that this also fixes the issue for you, when you have a chance

Thanks

Flags: needinfo?(odvarko)
Fission Milestone: --- → MVP
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp

(In reply to Hubert Boma Manilla (:bomsy) from comment #3)

Could you confirm that this also fixes the issue for you, when you have a chance

Yes, the issue is fixed when I test with the patch applied.
Thank you Hubert for quick analysis and fix!

Honza

Flags: needinfo?(odvarko)
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac0806a43c11 [devtools] Also check thread state resources where reason => 'resumeLimit' to maintain pauseTargets count r=jdescottes
Blocks: 1721161
No longer blocks: 1721161
Status: ASSIGNED → RESOLVED
Closed: 4 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: