Closed Bug 1612823 Opened 4 years ago Closed 4 years ago

Watch Expressions "refresh" button is never displayed

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox-esr68 unaffected, firefox72 wontfix, firefox73 wontfix, firefox74 fixed)

RESOLVED FIXED
Firefox 74
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?

  1. Open DevTools, select Debugger
  2. 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.

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.

Flags: needinfo?(nchevobbe)

(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?)

Flags: needinfo?(nchevobbe)
Regressed by: 1558303
Has Regression Range: --- → yes

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: nobody → jdescottes
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: