Closed Bug 1943543 Opened 1 month ago Closed 27 days ago

Avoid unecessary panel resize everytime they get hidden and re-shown

Categories

(DevTools :: General, enhancement)

enhancement

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: ochameau, Assigned: ochameau, NeedInfo)

References

Details

Attachments

(2 files, 1 obsolete file)

For now, all DevTools panels get collapsed when switching to another one, which triggers a document resize.
Panels often listen to resize event to launch updates, it may also triggers reflows automatically based on document size...

The deck was a flex where each panel was a flex:1 element
and using visibility collapse to make their size become 0 on hiding.

Instead always keep them full size and rely on visibility:hidden to hide them.

Note that the console is still special and involves collapsing.

Comment on attachment 9461495 [details]
Bug 1943543 - [devtools] Prevent unecessary updates when the netmonitor gets hidden.

Revision D235414 was moved to bug 1943364. Setting attachment 9461495 [details] to obsolete.

Attachment #9461495 - Attachment is obsolete: true
Blocks: 1943351
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd5fce018c5a [devtools] Prevent panels from resizing when hiding and then restoring. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/cd2dd8259eba [devtools] Prevent panels from resizing when switching from/to the web console. r=devtools-reviewers,nchevobbe

Backed out for causing bc failures @browser_ext_devtools_panel.js.

Flags: needinfo?(poirot.alex)
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fd769ef34ca [devtools] Prevent panels from resizing when hiding and then restoring. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/214d5bcaee80 [devtools] Prevent panels from resizing when switching from/to the web console. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Regressions: 1947023
See Also: → 1946690
Blocks: 1946690
Regressions: 1949180
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: