Closed Bug 2092096 Opened 14 days ago Closed 13 days ago

Perma devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Test timed out - when Gecko 162 merges to beta on 2026-11-19

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr153 unaffected, firefox160 unaffected, firefox161 unaffected, firefox162+ verified)

VERIFIED FIXED
162 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox160 --- unaffected
firefox161 --- unaffected
firefox162 + verified

People

(Reporter: asilaghi, Assigned: bomsy, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 external files)

Central-as-beta-simulation
How to run these simulations
Failure log

Failure log snippet:

[task 2026-11-12T11:08:51.140+00:00] 11:08:51     INFO - TEST-PASS | devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Only supports reloading the selected tab
[task 2026-11-12T11:08:51.140+00:00] 11:08:51     INFO - Waiting for page to be loaded…
[task 2026-11-12T11:08:51.141+00:00] 11:08:51     INFO - Console message: [JavaScript Warning: "InstallTrigger is deprecated and will be removed in the future." {file: "https://example.com/browser/devtools/client/debugger/test/mochitest/examples/ember/quickstart/dist/assets/vendor.js" line: 24829}]
[task 2026-11-12T11:08:51.142+00:00] 11:08:51     INFO - Buffered messages finished
[task 2026-11-12T11:08:51.142+00:00] 11:08:51     INFO - TEST-UNEXPECTED-FAIL | devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Test timed out
[task 2026-11-12T11:08:52.695+00:00] 11:08:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-11-12T11:08:52.695+00:00] 11:08:52     INFO - TEST-UNEXPECTED-FAIL | devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | profile uploaded in profile_browser_dbg-reloading-2.js.json.gz
[task 2026-11-12T11:08:52.696+00:00] 11:08:52     INFO - TEST-UNEXPECTED-TIMEOUT | devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Test timed out
[task 2026-11-12T11:08:52.696+00:00] 11:08:52     INFO - TEST-INFO took 92127ms
[task 2026-11-12T11:08:52.701+00:00] 11:08:52     INFO - GECKO(7411) | [Parent 7411: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (7fe6c4cccb00) [pid = 7411] [serial = 15] [outer = 7fe6c4c1e700]
[task 2026-11-12T11:08:57.991+00:00] 11:08:57     INFO - GECKO(7411) | [Parent 7411: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7fe6c51dc300) [pid = 7411] [serial = 6] [outer = 0] [url = about:blank]
[task 2026-11-12T11:08:58.667+00:00] 11:08:58     INFO - GECKO(7411) | Completed ShutdownLeaks collections in process 7411
[task 2026-11-12T11:08:58.668+00:00] 11:08:58     INFO - TEST-START | Shutdown``


Summary: Perma | devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Test timed out - when Gecko 162 merges to beta on 2026-11-19 → Perma devtools/client/debugger/test/mochitest/browser_dbg-reloading.js | Test timed out - when Gecko 162 merges to beta on 2026-11-19

:florian, since you are the author of the regressor, bug 2090982, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(florian)

The regressor is bug 2081428, not bug 2090982. Bug 2090982 only touched browser_dbg-overrides.js, which runs from a different manifest.

When bug 2081428 re-landed (c16610f68b7e) it did two things:

  • It turned on devtools.debugger.features.stylesheets-in-debugger only under #if defined(NIGHTLY_BUILD) (firefox.js).
  • In the same patch it changed steps 2 and 3 of browser_dbg-reloading.js to waitForDispatch(dbg.store, "ADD_SOURCES", 2), which waits for one script batch and one stylesheet batch.

The debugger only watches STYLESHEET resources if that pref is true when it connects (client/firefox.js). On beta the pref is false, so the stylesheet ADD_SOURCES dispatch (newSources.js) never happens. The second dispatch never arrives and the test hangs.

Fix: in browser_dbg-reloading.js, add await pushPref("devtools.debugger.features.stylesheets-in-debugger", true); next to the existing navigation_cache pushPref, before initDebugger. It has to come before initDebugger because the pref is read only once, at connect time. This is how browser_dbg-stylesheets.js already does it. The ember page links two CSS files, so with the pref on, both waits are satisfied on every channel. No other test changed by c16610f68b7e appears to rely on the Nightly default without setting the pref.

Suggested severity: S3. This is a test-only failure with no user impact, but it fails on every DevTools run once 162 merges to beta on 2026-11-19, so it needs to land before then.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED

The test waits for two ADD_SOURCES dispatches per reload, one for scripts and one for stylesheets. Stylesheets only show up in the debugger when devtools.debugger.features.stylesheets-in-debugger is set, and that pref is on by default only on Nightly. On beta the second dispatch never comes and the test times out.

The fix sets the pref explicitly before initDebugger, since the pref is read when the debugger connects. browser_dbg-stylesheets.js does the same.

Regressed by: 2081428
No longer regressed by: 2090982
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/272d8c36c5a6 https://hg.mozilla.org/integration/autoland/rev/3a2a00786a3e [devtools] Test reloading the debugger with and without stylesheet support r=devtools-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

The patch is working in today's beta simulation.

Verified fixed in latest beta-simulation

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: