browser_dbg-overrides.js times out when run twice because it leaves its override file in the temp directory
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
When devtools/client/debugger/test/mochitest/browser_dbg-overrides.js runs twice in a row (the mochitest-devtools-chrome-repeat jobs), the second run times out in waitForPaused, and the toolbox it leaves open is then reported as leaked windows and docShells until shutdown.
The first run leaves test.js in PathUtils.tempDir. In the second run, the test's TestUtils.waitForCondition checks (file exists, size > 0) pass immediately. The test then writes the overridden script, and DevToolsUtils.saveAs overwrites it with the original source. The reload never calls foo(), so the debugger never pauses.
Fix: remove the file in a cleanup function, and wait for the SET_NETWORK_OVERRIDE dispatch instead of polling the file.
Test dashboard: https://tests.firefox.dev/test.html?test=devtools/client/debugger/test/mochitest/browser_dbg-overrides.js
| Assignee | ||
Comment 1•20 days ago
|
||
The file left in the temp directory by the first run made the existence polling pass before DevToolsUtils.saveAs wrote the original content, which then replaced the test's overridden script, so a repeated run never paused.
Comment 3•19 days ago
|
||
| bugherder | ||
Updated•2 days ago
|
Description
•