Open Bug 1653773 Opened 5 years ago Updated 2 years ago

Zooming picture causes 95% scaling at 160%

Categories

(Core :: Graphics: WebRender, defect, P3)

78 Branch
defect

Tracking

()

Tracking Status
firefox-esr78 --- disabled
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- fix-optional
firefox81 --- affected

People

(Reporter: wbertrums, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

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

Steps to reproduce:

I'm using Firefox 778.0.2-1 on Debian Unstable.

  1. Open a 2560px wide PNG in Firefox on a 3840px wide monitor.
  2. Zoom in (using Ctrl+scroll).

Actual results:

When I zoom in to 160%, the image gets scaled to 95% and thus isn't zoomed in further.

Expected results:

When I zoom in to 160%, the image scaling doesn't change, and thus I'm zoomed in further than with 150%.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

Can you attach your about:support as a text file?

Flags: needinfo?(wbertrums)

Rares, when you get a chance I'd be curious to see if this happens on Windows

Flags: needinfo?(rares.doghi)
Blocks: wr-linux
Severity: -- → S3
Priority: -- → P3
Attached file about:support
Flags: needinfo?(wbertrums)

Can you upload Untitled.png to Bugzilla? Which desktop environment are you using?
Can you also check if latest Nightly is still affected?
$ sudo apt install python3-pip
$ pip3 install --upgrade mozregression
$ MOZ_ENABLE_WAYLAND=1 ~/.local/bin/mozregression --launch 2020-07-23 --pref gfx.webrender.all:true -a file:///home/woutjuh/Desktop/Untitled.png

or https://nightly.mozilla.org and start it with MOZ_ENABLE_WAYLAND=1 ./firefox

If it was fixed, could you try to find the fix range?
$ MOZ_ENABLE_WAYLAND=1 ~/.local/bin/mozregression --find-fix --bad 78 --good 2020-07-23 --pref gfx.webrender.all:true -a file:///home/woutjuh/Desktop/Untitled.png

Does it also reproduce with XWayland?
$ ~/.local/bin/mozregression --launch 2020-07-23 --pref gfx.webrender.all:true -a file:///home/woutjuh/Desktop/Untitled.png

If it's still reproducible, could you try to find the regression range?
$ ~/.local/bin/mozregression --good 76 --bad 78 --pref gfx.webrender.all:true -a file:///home/woutjuh/Desktop/Untitled.png

Attached image Untitled.png

This is Untitled.png, but like I said, it happens with any picture that is 2560 px wide.

I've tried it on both GNOME Shell and Sway, and it happens on both, as long as the Firefox window is 3840 px wide.

I'll try Nightly later.

Hi, I was able to reproduce this issue on Windows as well with a 4k monitor but only if I would set the Scaling to 100% instead of the recommended 250%.
After setting the scaling to 100% on windows the issue occurs from 150% to 170% zoom level
When changing the scaling on windows to 125% on a 4k monitor the issue occurs at 120% to 133% zoom level

Flags: needinfo?(rares.doghi)
Blocks: wr-correctness
No longer blocks: wr-linux
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Blocks: wr-zoom
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: