Watch Expressions "refresh" button is never displayed
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox-esr68 unaffected, firefox72 wontfix, firefox73 wontfix, firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox72 | --- | wontfix |
firefox73 | --- | wontfix |
firefox74 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
Initially reported on Discourse by @lanesun : https://discourse.mozilla.org/t/add-a-refresh-button-to-the-watcher/53124
What were you doing?
- Open DevTools, select Debugger
- Add a watch expression
What happened?
The watch expression header is supposed to display a "refresh" button, but it's ot visible
What should have happened?
Refresh button should be visible.
Anything else we should know?
The issue comes from the following check:
https://searchfox.org/mozilla-central/rev/2e355fa82aaa87e8424a9927c8136be184eeb6c7/devtools/client/debugger/src/components/SecondaryPanes/index.js#186
watchExpressionHeaderButtons() {
const { expressions } = this.props;
const buttons = [];
if (expressions.size) {
// ...
}
}
Looking at the props, expressions
is supposed to be an Immutable List (which should therefore expose a "size" property). However at runtime, the expressions
prop is an Array.
Assignee | ||
Comment 1•4 years ago
|
||
Nicolas, thanks for proposing to bisect the regression! Don't hesitate to send it back to me if you don't have time to hunt it down.
Assignee | ||
Comment 2•4 years ago
|
||
(ok I had a feeling it was Bug 1558303, and indeed https://hg.mozilla.org/mozilla-central/rev/74f226b5b684 is the regressing change. clearing ni?)
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Let's fix this and add a test.
I noticed that the refresh only works well with simple types. If I am watching an object, refresh will not show additional/updated properties.
Maybe an issue with the object inspector?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D61451
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0594c4fc1b67 Display refresh button in Debugger watch expressions panel r=jlast https://hg.mozilla.org/integration/autoland/rev/494913315ee3 Remove remaining mentions of Immutable in Debugger codebase r=jlast
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0594c4fc1b67
https://hg.mozilla.org/mozilla-central/rev/494913315ee3
Updated•4 years ago
|
Description
•