Blank Debugger panel when using remote debugging
Categories
(DevTools :: about:debugging, defect)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Assigned: ochameau)
References
Details
Attachments
(2 files)
This is a backward compatibility issue from Bug 1269919
Prerequisite:
devtools.toolbox.selectedTool
should be set on the client- client should have Bug 1269919
- server should not have Bug 1269919
STRs:
- open DevTools
- select a Panel
- close DevTools
(the goal of this step is to set the prefdevtools.toolbox.selectedTool
, which triggers the bug for some reason) - open about:debugging-new
- connect to your older server
- inspect any tab
- in about:devtools-toolbox, select the debugger
ER: Debugger UI should display
AR: Debugger UI is blank
The UI crashes because listWorkers doesn't return a workers array:
https://searchfox.org/mozilla-central/rev/dbddac86aadf1d4871fb350bbe66db43728a9f81/devtools/client/debugger/new/src/client/firefox/workers.js#27
Reporter | ||
Comment 1•6 years ago
•
|
||
Note that simply doing
let { workers } = await tabTarget.listWorkers();
workers = workers || [];
at https://searchfox.org/mozilla-central/rev/dbddac86aadf1d4871fb350bbe66db43728a9f81/devtools/client/debugger/new/src/client/firefox/workers.js#27 "fixes" the issue.
Reporter | ||
Comment 2•6 years ago
|
||
Alex, looks like https://hg.mozilla.org/mozilla-central/rev/c018b87959c2 is breaking backwards compatibility, or at least it bricks the debugger UI. Any idea why this would happen? At first glance, I don't understand why this patch would impact a listWorkers() call?
Assignee | ||
Comment 3•6 years ago
|
||
Thanks for the report, it is a pretty trivial fix.
I never removed an event and it needs special care to not break backward compat.
Assignee | ||
Comment 4•6 years ago
|
||
newSource events used to be sent on the target actors on FF66 and before,
this is no longer the case. But we still have to accept them if we connect
to old remotes, otherwise the events are considered as a method reply
and confuses packet ordering.
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
Reporter | ||
Comment 8•6 years ago
|
||
thanks for fixing the comment in a followup :)
Comment 9•6 years ago
|
||
bugherder |
Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Description
•