Closed Bug 1722801 Opened 3 years ago Closed 3 years ago

test_webconsole-node-grip.html fails with server targets

Categories

(DevTools :: Console, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

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

People

(Reporter: ochameau, Assigned: nchevobbe)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file, 1 obsolete file)

This test fails for a surprising reason. See more info on phabricator.

I can't explain how we end up with a null connection in _connections,
_connectionClosed is called for the failing connID and delete should
be removing the entry... and not nullifying it.

When running test_webconsole-node-grip.html with server side target switching,
the test was failing as accessing this._connections[connID] was returning a
null object.
From some quick investigation, it looks like the object was nullified after
a first connection was closed.
Retrieving all the connection objects before looping closing them seems to
fix the issue.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Whiteboard: dt-fission-future
Fission Milestone: --- → MVP
Whiteboard: dt-fission-future → dt-fission-m3-mvp
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a1258e10d17 [devtools] Get all connections before closing them in DevToolsServer.destroy. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Attachment #9233607 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: