moz:debugging fails to handle nested pauses correctly
Categories
(Remote Protocol :: WebDriver BiDi, defect, P3)
Tracking
(firefox156 fixed)
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: jdescottes, Assigned: khalid.alhaddad98)
References
Details
(Whiteboard: [webdriver:m21][webdriver:external][webdriver:relnote])
Attachments
(1 external file, 1 obsolete file)
Spotted while reviewing Bug 2041335.
The moz:debugging windowglobal module tracks the paused state via a single flag (#paused). We also store a single paused frame in messageHandler.debuggerEnvironment.
If a nested pause occurs (either through evaluating script while paused, or via a same process iframe), this model breaks because you can't cleanly resume only the top pause (prior to Bug 2041335, it would fail slightly differently: we would remain paused with no way to resume).
We should fix this by adding a depth counter and a stack of frames, as well as tests.
| Reporter | ||
Comment 1•3 months ago
|
||
Khalid, would you be interested in picking up this follow up bug around breakpoints? It is a bit more involved but I'm happy to help in case you want to pick it up.
I will push a patch adding tests in any case.
| Reporter | ||
Comment 2•3 months ago
|
||
Updated•3 months ago
|
| Assignee | ||
Comment 3•3 months ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #1)
Khalid, would you be interested in picking up this follow up bug around breakpoints? It is a bit more involved but I'm happy to help in case you want to pick it up.
I will push a patch adding tests in any case.
Yes, I would like to pick it up, and thank you!
| Reporter | ||
Comment 4•3 months ago
|
||
Great! Assigning to you, I think you already know how to run wdspec tests right? Feel free to pull the tests attached to the bug and use them to check your fixes!
| Assignee | ||
Comment 5•3 months ago
|
||
Yes as well, so I will add the depth counter and stack of frames. I will also pull the tests from this bug to verify my fixes, and I will let you know if I run into any issues.
| Assignee | ||
Comment 6•3 months ago
|
||
| Reporter | ||
Comment 7•3 months ago
|
||
Hi Khalid, can you request review on https://phabricator.services.mozilla.com/D316732 ?
Updated•3 months ago
|
| Assignee | ||
Comment 8•3 months ago
|
||
Hi Julian, done. I requested review.
Updated•2 months ago
|
Comment 10•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
| Reporter | ||
Updated•2 months ago
|
Description
•