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])
Attachments
(1 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•1 month 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•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 3•1 month 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•1 month 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•1 month 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•1 month ago
|
||
| Reporter | ||
Comment 7•28 days ago
|
||
Hi Khalid, can you request review on https://phabricator.services.mozilla.com/D316732 ?
Updated•28 days ago
|
| Assignee | ||
Comment 8•28 days ago
|
||
Hi Julian, done. I requested review.
Updated•21 days ago
|
Comment 10•13 days ago
|
||
| bugherder | ||
Updated•13 days ago
|
Description
•