Closed Bug 1726929 Opened 4 years ago Closed 4 years ago

Firefox zoom is reset after viewing an image

Categories

(Firefox :: General, defect)

Firefox 91
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bugzilla.mozilla.reg, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

  1. I enhanced the zoom level on a page: http://www.pmichaud.com/toast/
  2. Clicked on an image ("Figure 1. Toaster and Strawberry Pop Tarts")
  3. Went back to the page, to see the zoom level was reset

Actual results:

The zoom level was reset.

Expected results:

The zoom level should have retained the original level.

This has been reported previously, but many years ago, so perhaps an acceptable solution is possible now? See:

"with browser.zoom.siteSpecific=false: viewing a standalone image resets full zoom level" https://bugzilla.mozilla.org/show_bug.cgi?id=503729

"Zoom level become 1.0 after viewing Image Document when browser.zoom.siteSpecific=false" https://bugzilla.mozilla.org/show_bug.cgi?id=722624

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Images, Video, and HTML Frames' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout: Images, Video, and HTML Frames
Product: Firefox → Core
Component: Layout: Images, Video, and HTML Frames → General
Product: Core → Firefox

Hi tero!
I was not able to reproduce this issue in the latest version of Nightly 93.0a1 (2021-08-24)(64-bit) on Ubuntu 20.04. Note that the pref "browser.zoom.siteSpecific" is set to true by default. If the value is "False" the zoom will not be remembered when going back.
Please could you check from about: config how you have configured this pref? Also, could you try it on Nightly and tell us what your input is? You can download it from here: https://nightly.mozilla.org/.
Thanks!

Flags: needinfo?(bugzilla.mozilla.reg)

Hi Marcela, That was an easy fix :-) browser.zoom.siteSpecific was set to false, and reverting to the default true, I can now see the image, click back, and the zoom level retains the original level. The issue can be closed and marked as resolved.
Thanks for the quick answer and help!

Flags: needinfo?(bugzilla.mozilla.reg)

Thanks for your reply, tero!
I will close this as Resolved WFM based on your comment. Please feel free to reopen it in case you consider it necessary.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME

Thanks! For completion, I use the excellent add-on https://addons.mozilla.org/firefox/addon/zoom-page-we/ which is able to toggle the browser.zoom.siteSpecific value, so it might have played a role, I am not sure. But if anyone else experience the same behavior, and finds this bug, that could also be worth checking out, just to rule it out or not.

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