Closed Bug 1722476 Opened 3 years ago Closed 3 years ago

browser_dbg-link-reload.js fails with server targets

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

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

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

This seem to be just a race condition which should already exist in the test.
Not clear why it wasn't happening before?
https://searchfox.org/mozilla-central/source/devtools/client/debugger/test/mochitest/browser_dbg-link-reload.js

  const dbg = await initDebugger("doc-reload-link.html");
  const {
    selectors: { getSelectedSource, getIsPaused, getCurrentThread },
    getState
  } = dbg;
 
  info("Add a breakpoint that will be hit on reload");
  await addBreakpoint(dbg, "doc-reload-link.html", 3);

initDebugger wasn't waiting for any source to be loaded (it doesn't wait for the url to be loaded as source and require more arguments)
This was leading to addBreakpoint to throw because doc-reload-link.html wasn't always already loaded.

We weren't waiting for the html page to be displayed in the source tree,
leading to failure when trying to set the breakpoint just after opening the toolbox.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/325375c2d4cf [devtools] Fix browser_dbg-link-reload.js with server side target. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Fission Milestone: --- → MVP
Whiteboard: dt-fission-m3-mvp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: