Zoom level is not applied correctly without a page refresh after changing "Zoom text only" option in about:preferences.
Categories
(Firefox :: Settings UI, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox72 | --- | unaffected |
firefox73 | --- | verified |
firefox74 | --- | verified |
People
(Reporter: ailea, Assigned: morgan)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
726.62 KB,
video/mp4
|
Details | |
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-release+
|
Details | Review |
Affected versions:
Nightly 74.0a1 (2020-01-28), Beta 73.0b10
Affected platforms:
ALL
Steps:
- Launch Firefox with a new profile and go to about:preferences.
- Under General, go to Zoom section and select 133% value (or any other) from the "Default zoom" dropdown.
- Perform a zoom in or zoom out using ctrl + mousewheel and then click on the zoom level badge from the address bar in order to return to the default zoom level.
- Check the "Zoom text only" checkbox and perform another zoom in or out like in step 3.
Actual result:
After checking the Zoom text only box and perform a zoom change using ctrl + mousewheel, the zoom level is applied for text only but starting from 100% instead from the default zoom level.
Expected result:
The zoom level should be applied starting from the default zoom level value set in step 2 (133% in our case).
NOTE: After checking the "Zoom text only" option from step 4, if the user refresh the page it works ok, the zoom changes are applied starting from the default zoom value. Note that other checkbox options like "Use smooth scrolling" from Browsing section is applied immediately without refreshing the page. Also if I change the Zoom text only option from menu bar->view->zoom->zoom text only, it works ok, the zoom level is changed starting from the default zoom level set in step 2, not from the 100%.
Please see the attachment.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Hmm my guess here is that the property name we're using to get the global value changes when it becomes text instead of full zoom? https://searchfox.org/mozilla-central/rev/cbd110d718bc89a499d3f996af24532abbf6f8ea/browser/modules/ZoomUI.jsm#59
Comment 2•5 years ago
|
||
(In reply to Morgan Reschenberg [:morgan] from comment #1)
Hmm my guess here is that the property name we're using to get the global value changes when it becomes text instead of full zoom? https://searchfox.org/mozilla-central/rev/cbd110d718bc89a499d3f996af24532abbf6f8ea/browser/modules/ZoomUI.jsm#59
I don't think so? _applyZoomToPref
always uses FullZoom.name
which is constant... https://searchfox.org/mozilla-central/rev/ad6234148892bc29bf08d736604ac71925138040/browser/base/content/browser-fullZoom.js#475 . So I suspect it's something else, just not sure what off-hand...
BTW, for triage I need to pick a priority - are you working on this? :-)
Assignee | ||
Comment 3•5 years ago
|
||
Hihi sorry, yes I'm working on this :) work has been slow with all hands but its on my radar
Comment 4•5 years ago
|
||
(In reply to Morgan Reschenberg [:morgan] from comment #3)
Hihi sorry, yes I'm working on this :) work has been slow with all hands but its on my radar
No worries, the all-hands thing makes complete sense, just gonna slap a P1 on this as a result. :-)
Assignee | ||
Comment 5•5 years ago
|
||
Comment 7•5 years ago
|
||
bugherder |
Comment 8•5 years ago
|
||
Is this something we should consider as an RC/dot release ride-along or can this fix ride Fx74 to release?
Reporter | ||
Comment 9•5 years ago
|
||
Verified - Fixed in latest Nightly 74.0a1 (Build id: 20200205215017) using Windows 10, Mac OS 10.15 and Ubuntu 18.04.
Assignee | ||
Comment 10•5 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #8)
Is this something we should consider as an RC/dot release ride-along or can this fix ride Fx74 to release?
It'd be awesome to get this into a dot release; especially since this is exposed through preferences UI and users are more likely to engage with it, even if they weren't trying out text zoom before.
What's the procedure to request this patch be included?
Assignee | ||
Comment 11•5 years ago
|
||
gijs messaged me lol I know what to do now
Assignee | ||
Comment 12•5 years ago
|
||
Comment on attachment 9124297 [details]
Bug 1611903: Change 'Text zoom only' checkbox behaviour to call ZoomManager.toggleZoom instead of changing preference directly.
Beta/Release Uplift Approval Request
- User impact if declined: Users will see inaccurate zoom levels when switching from full zoom to text zoom (or vice versa) without a refresh on
about:preferences
- Is this code covered by automated tests?: Yes
- 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 involves changing the checkbox functionality from flipping
browser.zoom.full
directly to callingZoomManager.toggleZoom()
. This functionality already exists within the browser (View > Zoom > Zoom Text Only); this patch serves only to mirror this logic in preferences. - String changes made/needed: N/A
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment on attachment 9124297 [details]
Bug 1611903: Change 'Text zoom only' checkbox behaviour to call ZoomManager.toggleZoom instead of changing preference directly.
Improvement to the new global zoom feature shipping in Fx73. Approved for 73.0 RC2.
Comment 14•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Reporter | ||
Comment 15•5 years ago
•
|
||
Verified - Fixed in Fx 73.0 (Build id: 20200207001703) using Windows 10, Mac OS 10.15 and Ubuntu 18.04.
Description
•