Open Bug 2057719 Opened 13 hours ago Updated 12 hours ago

Clicking on images in new tab sets zoom to 100%, which makes no sense on high dpi

Categories

(Firefox :: New Tab Page, enhancement)

Firefox 153
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: piotrunio-2004, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0 r3dfox/153.0

Steps to reproduce:

  1. Use non-96dpi configuration in Windows
  2. Open image in new tab
  3. Click on image

Actual results:

Zoom is set to 100%, window.devicePixelRatio will not be set to 1, so the image is not displayed at pixel perfect scale
Even if user changes to another zoom that results in window.devicePixelRatio being equal to 1, clicking on image or closing and reopening image tab will reset zoom to 100%

Expected results:

There should be an option to override the default image zoom level in about:config, (for example, 120dpi users may configure it to 0.8, 144dpi users configure it to 0.666666666666666666667, etc.) and if users do that, they will see images in new tabs in pixel perfect scale by default, and window.devicePixelRatio will be equal to 1

The Bugbug bot thinks this bug should belong to the 'Firefox::New Tab Page' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → New Tab Page
You need to log in before you can comment on or make changes to this bug.