devtools.netmonitor.panes-network-details-height keeps on resetting to 50
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: snugs.steed0e, Unassigned)
Details
(Keywords: good-first-bug)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 6.3; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
- Open the developer tools (make sure it's docked to the left/right and its width less than 700px*) and go to an example site.
- Switch to the network monitor and expand the details pane (by clicking on any request).
- Switch to another tool (e.g. Console).
- Close the developer tools.
*The width of the developer tools needs to be less than 700px for the details pane to appear at the bottom, not at the right.
Actual results:
If the user opens the developer tools and navigates to the network monitor again, expanding the details pane once more shows that the height of the details pane resets to 50px (this is reflected in both about:config with the configuration named "devtools.netmonitor.panes-network-details-height" as well as visually - the height is reduced significantly).
Expected results:
The height of the details pane of the network monitor should always remain unchanged.
Comment 1•6 years ago
|
||
Thanks for the report!
I can see the issue on my machine (Win10, Nightly)
Honza
Comment 2•6 years ago
|
||
Some instructions for anyone interested in fixing this:
-
Size of the Details pane is stored here:
https://searchfox.org/mozilla-central/rev/6866d3a650c826f1cabd123663e84b95ee743701/devtools/client/netmonitor/src/components/MonitorPanel.js#110 -
The height should be stored in "devtools.netmonitor.panes-network-details-height" pref
-
We should use the Browser Toolbox
https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox
(orconsole.logstatements)
...and verify that the method in #1 is properly called and storing/reading the expected value.
Honza
Comment 3•5 years ago
|
||
Hi, 👋
I did some digging so the problem is that whenever we move over to any other tab except for(network tab) the height of NetworkActionBar becomes 0 as expected but when we close this(https://searchfox.org/mozilla-central/rev/6866d3a650c826f1cabd123663e84b95ee743701/devtools/client/netmonitor/src/components/MonitorPanel.js#111) return 0, then after you open it again it will take 50 default, we can use networkDetailsHeight from UI reducer instead of it . What do you guys think..
Pranav
Comment 4•5 years ago
|
||
Thanks Pranav for looking into this!
Yes, it make sense to read the value from theUI reduce.
Note that the networkDetailsHeight value (and networkDetailsWidth) is updated only when RESIZE_NETWORK_DETAILS action is fired and we might want to make sure that value is always correct when we read it. I.e. we might want to initialize the value at the beginning to make it valid even if the user is not resizing the details panel.
If you have a patch I am happy to test it.
Honza
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Thanks for the patch, some comments left in Phabricator.
Honza
Comment 7•5 years ago
•
|
||
Comment 8•5 years ago
|
||
@Pranav: please look at this patch showing how we can fix persistence for the Actions bar as well.
Honza
Comment 9•5 years ago
|
||
Comment on attachment 9122855 [details]
Bug 1588478 - networkDetailPanel size gets saved form ui reducer and not from ref.
Revision D60951 was moved to bug 1588477. Setting attachment 9122855 [details] to obsolete.
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pranav, you are assigned to this bug, but there is no activity for a long time. Are you still planning to work on this?
(it looks like the patch is close, there is just one failing test)
Honza
Comment 11•5 years ago
|
||
Sorry , Honza for the delay, problem I am having the problem with test it worked for me on my mac but not for you on your windows, I don't have a windows PC and due lockdown I was not able to arrange one powerful enough ,I was thinking that after the lockdown opens I could look that , maybe you could look at it I am rebasing the patch and updating it , It might fix it , the problem is that the new Test that I wrote modify the width/height of the network panel by dragging it
the previous test was just setting the width/height of the panel to x value and then testing if it got saved getDoc().querySelector(".monitor-panel .split-box .controlled").style.height = `${value}px`;) we cannot do that as we changed this behavior
the problem with dragging is getting value exactly write for test is kind of hard , maybe I am doing some mistake,
Pranav
Comment 12•5 years ago
|
||
(In reply to Pranav pandey from comment #11)
I don't have a windows PC
Could you use VirtualBox or VMware?
The patch looks good so, it's only the test
Honza
Comment 13•4 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 14•2 years ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.
For more information, please visit BugBot documentation.
Description
•