Closed Bug 1704546 Opened 4 years ago Closed 3 years ago

The "active-tab" view isn't enabled when using the devtools panels

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect, P1)

defect

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(4 files)

STR:

  1. Open the new performance panel in the devtools toolbox
  2. Select the "Web developer" preset
  3. Start a profile and capture it.

=> The profile view should be configured with the "active tab" view. This is visible because in this case there's a "Full view" button at the top right.

This is working when using the popup (from Firefox' toolbar) but not from the devtools panel. This is also an issue in a remote debugging setup.
In the remote debugging setup we also need to take care that we use the same preset information as the one used when sampling, when deciding which view to configure.
(I don't remember if we take it from the debuggee or the debugger, that's why I'm not more assertive here).

Severity: -- → S3
Priority: -- → P1

Nazim and I also noticed oddness around this in https://phabricator.services.mozilla.com/D120158#inline-664969

The devtools panel never initializes the redux state profilerViewMode and also doesn't update it when the preset changes.
Maybe profilerViewMode shouldn't be in the state at all, and instead it should be computed from the preset when the profile is captured. That's what the popup does: https://searchfox.org/mozilla-central/rev/4f05a46731c1f7f111ec7a41ce38a34594aa0d37/devtools/client/performance-new/popup/background.jsm.js#222-237

The devtools panel never initializes the redux state profilerViewMode and also doesn't update it when the preset changes.

Actually, more than this: when the user changes things in about:profiling, the devtools panel doesn't know about it.

This is something I want to fix soon.

Maybe profilerViewMode shouldn't be in the state at all, and instead it should be computed from the preset when the profile is captured.

I'll have to look at why we were doing this at first :-)

Maybe profilerViewMode shouldn't be in the state at all, and instead it should be computed from the preset when the profile is captured.

I think this would be the cleaner way to do this.

Hi Julien, just to make sure: this issue should only block removing the old panel and doesn't need to block enabling the new performance panel in Release (which would be Bug 1693316) ?

Flags: needinfo?(felash)

Yes indeed, wrong blocked bug!

Blocks: 1693316
No longer blocks: 1668219
Flags: needinfo?(felash)

Looks like I already analyzed this in duplicate bug 1716837 comment 1. Looks like I got the same conclusion than Markus too :-)

Assignee: nobody → felash
Attachment #9240345 - Attachment description: WIP: Bug 1704546 - [devtools performance] Simple change to display the expected profiler UI URL in case it's different r=jdescottes! → Bug 1704546 - [devtools performance] Simple change to display the expected profiler UI URL in case it's different r=jdescottes!
Status: NEW → ASSIGNED
Attachment #9240346 - Attachment description: WIP: Bug 1704546 - [devtools performance] Simple change to some diagnostic text in the record and discard test r=jdescottes! → Bug 1704546 - [devtools performance] Simple change to some diagnostic text in the record and discard test r=jdescottes!
Attachment #9240347 - Attachment description: WIP: Bug 1704546 - [devtools performance] Change the record and capture test for the popup to change presets using the popup instead of prefs r=jdescottes! → Bug 1704546 - [devtools performance] Change the record and capture test for the popup to change presets using the popup instead of prefs r=jdescottes!
Attachment #9240348 - Attachment description: WIP: Bug 1704546 - [devtools performance] Select the right profiler view mode when using the devtools panel r=jdescottes! → Bug 1704546 - [devtools performance] Select the right profiler view mode when using the devtools panel r=jdescottes!
Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/274612e0e043 [devtools performance] Simple change to display the expected profiler UI URL in case it's different r=jdescottes https://hg.mozilla.org/integration/autoland/rev/28c5e05f3b1d [devtools performance] Simple change to some diagnostic text in the record and discard test r=jdescottes https://hg.mozilla.org/integration/autoland/rev/7949bfd8c19a [devtools performance] Change the record and capture test for the popup to change presets using the popup instead of prefs r=jdescottes https://hg.mozilla.org/integration/autoland/rev/471e66a80360 [devtools performance] Select the right profiler view mode when using the devtools panel r=jdescottes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: