Closed Bug 1871762 Opened 1 year ago Closed 7 months ago

Developer Tools: Network status bar is misplaced after switching tabs

Categories

(DevTools :: Netmonitor, defect, P2)

Firefox 121
defect

Tracking

(firefox-esr115 unaffected, firefox-esr128 wontfix, firefox121 wontfix, firefox122 wontfix, firefox123 wontfix, firefox124 wontfix, firefox129 wontfix, firefox130 wontfix, firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- wontfix
firefox121 --- wontfix
firefox122 --- wontfix
firefox123 --- wontfix
firefox124 --- wontfix
firefox129 --- wontfix
firefox130 --- wontfix
firefox131 --- fixed

People

(Reporter: Perlence, Assigned: jdescottes)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image 2023-12-23_22-20-21.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

  1. Open the Developer Tools
  2. Click on the Network tab
  3. Click on a request, the request details sidebar opens
  4. Click any other Developer Tools tab, e.g. Debugger
  5. Click on the Network tab again

Actual results:

The status bar of the request table moves up, see the screenshot.

Expected results:

The status bar stays at the bottom of the request table.

The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Netmonitor
Product: Firefox → DevTools
Summary: Web Developer Tools > Network > Status bar goes up Viewing the request details in the Network tab → Developer Tools: Network status bar is misplaced after switching tabs

Thanks for the report, I can indeed reproduce

This is caused by https://searchfox.org/mozilla-central/rev/24ea2579c4a94d5da8db4bb529cbefe5e5e3c2d3/devtools/client/netmonitor/src/components/request-list/RequestListContent.js#180-188

/*
 * Removing onResize() method causes perf regression - too many repaints of the panel.
 * So it is needed in ComponentDidMount and ComponentDidUpdate. See Bug 1532914.
 */
onResize() {
  const parent = this.refs.scrollEl.parentNode;
  this.refs.scrollEl.style.width = parent.offsetWidth + "px";
  this.refs.scrollEl.style.height = parent.offsetHeight + "px";
}

I can't reproduce on ESR 115

Bug 1451717 caused this issue to appear, but it may just be that we used to benefit from an erroneous behavior before.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1451717

Set release status flags based on info from the regressing bug 1451717

:emilio, since you are the author of the regressor, bug 1451717, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

I don't think this should be slower than what you're doing nowadays. If
for some reason we do need this, it should use a resize observer on the
container, not listen to the window resize event.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2

Set release status flags based on info from the regressing bug 1451717

Duplicate of this bug: 1900682
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecfbe60ac0e3 [devtools] Wait for request animation frame to resize netmonitor request list r=devtools-reviewers,ochameau
Regressions: 1913039
Assignee: emilio → jdescottes
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: