When "Disable Popup Auto-Hide" is enabled, initializing the first inspector highlighter will close open popups, permanently crashing any open panels
Categories
(DevTools :: Inspector: Layout, defect)
Tracking
(Not tracked)
People
(Reporter: aminomancer, Unassigned)
Details
Sorry for the confusing title, this is a bit hard to describe.
STR
- Open a browser toolbox, being careful not to mouse over any elements in the inspector. In fact, it's probably best if you just don't open the Inspector tab yet.
- Disable Popup Auto-Hide, e.g., via the meatball menu (actually,
ui.popup.disable_autohide
will also work) - Open any <panel> (e.g., the app menu)
- Now mouse over an element in the inspector, such that a highlighter will be drawn.
Expected
A highlighter should be drawn
Actual
A highlighter is drawn, but all open popups are closed, without a graceful exit. For some popups this isn't a big deal, but for panels that set open
attribute on their anchors, this permanently breaks the anchor, making it impossible for the user to open the panel again within the menu. The open
attribute is not unset when the popup closes, so the anchor remains styled like it's open
and clicking it will not open the panel again.
In my limited experience this permanently-open state has been a pretty common failure mode for panels when debugging the chrome. I've seen it triggered by some other, more marginal things in the past, though I think those have been fixed. So maybe the normal method of unsetting the open
attribute should be reevaluated anyway, such that it's more automatic. But even so, it would be nice to work out whether the highlighter's popup-closing behavior is intentional and necessary, and if so, whether it could be done in a way that doesn't crash panels.
Keep in mind this can only be triggered when the first highlighter of the toolbox process is drawn. So, it can be avoided by...
- Open a toolbox
- Mouse over an element to draw a highlighter
- Now disable popup auto-hide and open a popup
- Now you can use highlighters safely
So if you're trying to reproduce it, make sure you're not accidentally doing that^
Edit: By the way, my title might be kinda misleading. I don't think the disable_autohide feature actually has anything to do with the etiology of the bug. It's just impossible to make the bug happen without it, because we can't otherwise use the toolbox without popups in the main window being automatically closed when the window is deactivated.
Reporter | ||
Comment 1•3 years ago
|
||
Also, there's another way to trigger this issue:
- Open a browser toolbox.
- Mouse over an element to draw a highlighter.
- Now disable popup auto-hide and open the app menu panel.
- Now you can (seemingly) use highlighters safely.
- With the app menu panel open, mouse over some elements to draw highlighters.
- With the app menu panel still open, hit Accel+W to close the browser toolbox.
- The app menu panel should close, leaving the app menu button stuck in
open
state.
Comment 2•3 years ago
|
||
Thank you for the report. I was able to reproduce the issue on my machine (Win10, Fx Nightly)
Comment 4•3 years ago
|
||
yes, looks exactly like Bug 1768209.
Shane, can you check on latest Nightly that this got fixed for you?
Reporter | ||
Comment 5•3 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #4)
yes, looks exactly like Bug 1768209.
Shane, can you check on latest Nightly that this got fixed for you?
Yeah it's fixed, thanks all.
Description
•