Avoid unecessary panel resize everytime they get hidden and re-shown
Categories
(DevTools :: General, enhancement)
Tracking
(firefox137 fixed)
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...
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
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 3•1 month ago
|
||
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.
Assignee | ||
Comment 4•1 month ago
|
||
These patches, on top of bug 1943364 reports a 74% regression on togglePanel and 27% improvement on custom.netmonitor.close:
https://perf.compare/subtests-compare-results?baseRev=2530b075b0483b6e9f7e05168f099c2dfcffec1c&baseRepo=try&newRev=b2cddc6b72b2c4bf754ab13f517e2292342a5883&newRepo=try&framework=12&baseParentSignature=4763542&newParentSignature=4763542&filter_confidence=medium%2Chigh
Assignee | ||
Comment 5•1 month ago
|
||
Updated•1 month ago
|
Backed out for causing bc failures @browser_ext_devtools_panel.js.
Comment 9•27 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9fd769ef34ca
https://hg.mozilla.org/mozilla-central/rev/214d5bcaee80
Description
•