Open Bug 1982942 Opened 2 months ago Updated 16 days ago

Minimum window width setup does not play well with non-overflowable toolbar buttons

Categories

(Firefox :: Toolbars and Customization, defect, P3)

Firefox 142
Desktop
Windows
defect

Tracking

()

Tracking Status
firefox-esr128 --- unaffected
firefox-esr140 --- affected
firefox142 --- wontfix
firefox143 --- wontfix
firefox144 --- wontfix
firefox145 --- fix-optional

People

(Reporter: nrishel, Unassigned, NeedInfo)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Similar behavior as seen in Bug 1978280 but with a different root cause. The tweaked sidebar toggle for Vertical Tabs seems to break browser chrome flow, perhaps same issue with other buttons if they contain similar attributes?

Steps to reproduce:

  1. Open Firefox in a fresh profile.
  2. Enable Vertical Tabs.
  3. Disable Vertical Tabs.
  4. Close and relaunch Firefox.
  5. Narrow the window width to it's minimum size.

Actual results:
The unified extensions button and the overflow menu button partially overlap when the window width is reduced to its’ maximum allowed size.

Expected:
unified extensions button and the overflow menu button don't overlap when the window width is reduced to its’ maximum allowed size.

Mike, you last changed some of the overflow mechanics a while back for the webextensions button.

My impression is that this stuff just doesn't scale very well.

The vertical tabs case is trying to cater for the caption buttons. There is some OS-specific stuff going on there. Then there's the fact that we need to cater for buttons that are going to refuse to overflow (like the sidebar button from bug 1926979, but I suspect there are others). The current state requires a bunch of duplication, has magic numbers, and is incomplete.

I think we need a better solution here, but it's not 100% clear to me what that looks like. Do you have ideas? We could look for items with overflows=false in the toolbar and try to dynamically add their width to the required minimum width, or something? I feel like if we went that way it might be better to work out the width of the caption buttons and/or other items dynamically as well, which might mean we can omit the duplication for taskbar tab vs vertical tabs...

Severity: -- → S3
Flags: needinfo?(mconley)
Keywords: regression
OS: Unspecified → Windows
Priority: -- → P3
Regressed by: 1926979
Hardware: Unspecified → Desktop
Summary: Vertical Tabs modified sidebar icon causes overflow/addons UI overlap for narrow windows if present at startup → Minimum window width setup does not play well with non-overflowable toolbar buttons

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

I'm going to redirect to sclements for now to see if there's any perspective here on the best way forward from our sidebar / vertical tabs team.

Flags: needinfo?(mconley) → needinfo?(sclements)
See Also: → 1984992

Wait - is this just a dupe of bug 1978280 now?

Flags: needinfo?(nrishel)

(In reply to Mike Conley (:mconley) (:⚙️) from comment #4)

Wait - is this just a dupe of bug 1978280 now?

Bug 1978280 only helps taskbar tabs and/or the browser.urlbar.trustPanel.featureGate = true case, the latter of which isn't the default yet. Even when that's the default, while the urlbar min-width will be smaller and so we'll have a bit more breathing room, it won't fundamentally change the situation in the sense that the questions Gijs has raised here would still be open, and it's only a matter of time until we'd run into these issues again. Bug 1984992 is another case btw.

Flags: needinfo?(nrishel)

(In reply to :Gijs (he/him) from comment #1)

The vertical tabs case is trying to cater for the caption buttons. There is some OS-specific stuff going on there. Then there's the fact that we need to cater for buttons that are going to refuse to overflow (like the sidebar button from bug 1926979, but I suspect there are others). The current state requires a bunch of duplication, has magic numbers, and is incomplete.

I'm slightly refactoring this in bug 1987429. It's still incomplete (e.g. bug 1982574 comment 33) and has magic numbers, but it should be a bit easier to work with.

Depends on: 1987429

(In reply to :Gijs (he/him) from comment #1)

We could look for items with overflows=false in the toolbar and try to dynamically add their width to the required minimum width, or something? I feel like if we went that way it might be better to work out the width of the caption buttons and/or other items dynamically as well, which might mean we can omit the duplication for taskbar tab vs vertical tabs...

One further complication is that if we prevent windows from shrinking below half of the screen size, we might break window manager features like tiling and snapping, which is why in the last few days I've worked on reducing our min-width, see bug 1982574 and dependents. Seems like we'll want some kind of safeguard to prevent the min-width from getting out of hand.

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

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: