Closed Bug 2070932 Opened 3 days ago Closed 2 days ago

Intermittent browser_dbg-ember-original-variable-mapping-notifications.js | Test timed out

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

browser_dbg-ember-original-variable-mapping-notifications.js times out with no failure message. It failed 8 times in three weeks on windows11-64-25h2 opt, and the in-job rerun passed every time.

The ember quickstart page has four original sources named router.js, so waitForSources(dbg, "router.js") is satisfied by any of them. When one of the vendor ones wins, the line the test breakpoints falls inside a doc comment with no breakable position. addBreakpoint then returns without dispatching SET_BREAKPOINT, and the test waits on that dispatch until the timeout.

The fix is to pass the app router's full URL to invokeWithBreakpoint instead of the bare "router.js". findSource already accepts a full URL, which Bug 1755736 kept deliberately for files that share a name.

Four original sources on the ember quickstart page are named router.js, three of
them from vendor.js, and findSource() returns the first one in insertion order.
When vendor.map is processed before quickstart.map the test picks
ember-routing/services/router.js, whose line 13 is a comment, so addBreakpoint()
never dispatches SET_BREAKPOINT and the helper waits until the test times out.

Naming a source by its full URL is the case Bug 1755736 kept URL support for
when it narrowed findSource() to an exact file-name match.

Assignee: nobody → florian
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: