Closed Bug 1696889 Opened 3 years ago Closed 3 years ago

Elements before Zoom Controls are moving when selected zoom level is changed

Categories

(Firefox :: Theme, defect)

Firefox 88
Desktop
All
defect

Tracking

()

VERIFIED FIXED
88 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- disabled
firefox87 --- disabled
firefox88 --- verified

People

(Reporter: atrif, Assigned: ntim)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: helpwanted, regression, Whiteboard: [proton-toolbar])

Attachments

(4 files)

Affected versions

  • 88.0a1 (20210307213430)

Affected platforms

  • macOS 11.2.2
  • Windows 10x64

Preconditions

  • enabled proton toolbar

Steps to reproduce

  1. Open Firefox Customize mode.
  2. Add Zoom controls and some elements before.
  3. Change Zoom levels between 100 and 90.

Expected result

  • Elements before zoom controls are not moving.

Actual result

  • Elements are moving.

Regression range

  • I will search for one ASAP if there is one.

Notes

  • Attached a screen recording.
Has Regression Range: --- → no
Has STR: --- → yes
Whiteboard: [proton-toolbar]

It seems that the elements are moving as well even if zoom is increased by clicking + button several times. Attached a screen recording.

Summary: Elements before Zoom Controls are moving when selected zoom is changed between 100 and 90 and vice versa → Elements before Zoom Controls are moving when selected zoom level is changed
QA Whiteboard: [qa-regression-triage]

I can't personally reproduce this, but Blake can. Also appears in the app menu

Keywords: helpwanted

I also can't reproduce. Better steps would help narrow down a regression window as well... If from the regression window it's easy to fix (and it sounds like it's not happening on non-proton) then presumably this is fixable by restoring a fixed width for the "reset" part of the control, which I assume is applied without proton, but not applied with proton. Either way, considering this control isn't normally in the toolbar and this problem primarily happens when changing the number of digits of the zoom level, and then only in some cases, this isn't high priority. It'd be S4 except I've realized that this probably means the toolbar can "jitter" when switching tabs in this configuration, which I imagine would be highly annoying.

Priority: -- → P3
Attached image zoom_0.gif

Hi!
The steps for this, at least for me are:

  1. Open Firefox with a clean profile having the proton toolbar enabled.
  2. Enter Customize mode and add Zoom Controls in front of the Downloads button on the right side.
  3. Add two more random items in front of the Zoom Controls.
  4. Save changes and change Zoom Levels between 90% and 100%.

This issue is reproducible with Normal and Touch mode density, but not with Compact mode. Another thing worth mentioning is that the issue can be seen when switching tabs with different zoom levels (under/over 100%). Attached a screen recording.

Regression range with proton toolbar enabled:
Last good revision: 90df77c721dd9353439673063e2c96e885119153
First bad revision: 05b20fdef40d726358e98bb0b4d53f4443ead977
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=90df77c721dd9353439673063e2c96e885119153&tochange=05b20fdef40d726358e98bb0b4d53f4443ead977

Also, I found out that the issue is reproducible with the proton toolbar disabled while having Touch density enabled but not with Normal and Compact mode. Let me know if a regression range will help with touch mode and proton toolbar disabled (if there is one). Thank you!

Has Regression Range: no → yes
Regressed by: 1686530
Assignee: nobody → ntim.bugs

Previous calculation did not take in account padding of toolbar button, so this now uses 4ch + 1ch + var(--toolbarbutton-inner-padding) * 2.

Attachment #9209905 - Attachment description: Bug 1696889 - Use more precise calculation of #zoom-reset-button min-width. r=emalysz,mstriemer → Bug 1696889 - Use more precise calculation for toolbar & appmenu zoom reset button min-width. r=emalysz,mstriemer
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/22545dd0b232
Use more precise calculation for toolbar & appmenu zoom reset button min-width. r=emalysz
Component: Toolbars and Customization → Theme

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Verified fixed with Firefox 88.0a1 (20210321213736) on Windows 10x64, Ubuntu 20 and macOS 11.2.3. The elements before zoom controls are no longer moving when changing zoom levels.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: