error message when closing browser toolbox (after using node picker?)
Categories
(DevTools :: Inspector, defect)
Tracking
(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox92 unaffected, firefox93 unaffected, firefox94 fixed)
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox-esr91 | --- | unaffected |
firefox92 | --- | unaffected |
firefox93 | --- | unaffected |
firefox94 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
here's the message I see in the terminal:
TypeError: (destructured parameter) is undefined: _onInspectorFrontDestroyed@resource://devtools/client/inspector/node-picker.js:104:35
_emit@resource://devtools/shared/event-emitter.js:244:34
emit@resource://devtools/shared/event-emitter.js:190:18
emit@resource://devtools/shared/event-emitter.js:342:18
unmanage@resource://devtools/shared/protocol/Front.js:170:37
destroy@resource://devtools/shared/protocol/Pool.js:184:14
baseFrontClassDestroy@resource://devtools/shared/protocol/Front.js:110:13
destroy@resource://devtools/shared/protocol/Front.js:74:10
destroy@resource://devtools/client/fronts/inspector.js:113:11
_destroyTarget@resource://devtools/client/fronts/targets/target-mixin.js:641:17
This is triggered by https://searchfox.org/mozilla-central/rev/50c3cf7a3c931409b54efa009795b69c19383541/devtools/client/inspector/node-picker.js#104 , because we're missing the second parameter and we try to destructure it.
It probably comes from this callback https://searchfox.org/mozilla-central/rev/50c3cf7a3c931409b54efa009795b69c19383541/devtools/client/inspector/node-picker.js#137
Assignee | ||
Comment 1•3 years ago
|
||
onInspectorFrontDestroyed was throwing because when it
is called from the destroy callback of watchFronts, it
doesn't get a second argument, and the destructuring fails.
This patch defaults the second parameter to an empty object
in order to avoid this.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0cab7f09323c [devtools] Fix node picker error when closing browser toolbox. r=ochameau.
Comment 3•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Set release status flags based on info from the regressing bug 1729925
Updated•3 years ago
|
Description
•