Closed Bug 1610250 Opened 5 years ago Closed 5 years ago

Zoom level badge is displayed in the address bar for default zoom level set to 110%

Categories

(Firefox :: Disability Access, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 74
Tracking Status
firefox72 --- unaffected
firefox73 --- verified
firefox74 --- verified

People

(Reporter: ailea, Assigned: morgan)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Affected versions:

Nightly 74.0a1 (2020-01-20), Beta 73.0b7

Affected platforms:

ALL

Steps:

  1. Launch Firefox with a new profile and go to about:preferences.
  2. Under General, go to Zoom section and select 110% value from the "Default zoom" dropdown.

Actual result:

The zoom level badge is displayed next to the url bar.

Expected result:

The zoom level badge should be not displayed in the URL bar for default zoom level. It is displayed only when the default zoom is set to 110%. For any other value the badge is not displayed.

I'm guessing this is courtesy of double-precision floating value rounding...

Assignee: nobody → mreschenberg
Priority: -- → P3

:gijs you win a prize!

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f3356585ca13 Ensure we compare rounded integer values when setting the hidden attribute of the URL bar's zoom button. r=Gijs
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74

This seems like a safe fix, want to request uplift for 73?

Flags: needinfo?(mreschenberg)

Verified - Fixed in latest Nightly build 74.0a1 (Build id: 20200122094859) using Windows 10, Mac OS 10.15 and Ubuntu 18.04

yep will do :)

Flags: needinfo?(mreschenberg)

Comment on attachment 9122088 [details]
Bug 1610250: Ensure we compare rounded integer values when setting the hidden attribute of the URL bar's zoom button. r?gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Users will see inaccurate behavior in the URL bar; the zoom percentage will remain visible even when the page is scaled to the default zoom level set in preferences.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch contains a one line change which involves adding a rounding statement.
  • String changes made/needed: N/A
Attachment #9122088 - Flags: approval-mozilla-beta?

Comment on attachment 9122088 [details]
Bug 1610250: Ensure we compare rounded integer values when setting the hidden attribute of the URL bar's zoom button. r?gijs

shakes his fist at floating point Approved for 73.0b9.

Attachment #9122088 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified - Fixed in latest Beta 73.0b9 (Build id: 20200122212931). I will mark the flags accordingly.
Thanks.

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

Attachment

General

Created:
Updated:
Size: