Open Bug 1594071 Opened 2 years ago Updated 2 years ago

apz_zoom breaks page size when switching between HiDPI and non-HiDPI screens

Categories

(Core :: Panning and Zooming, defect, P3)

72 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: johannes, Unassigned)

References

(Blocks 1 open bug)

Details

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

Steps to reproduce:

On Linux/Wayland

  1. set apz.allow_zoom=true
  2. Open Firefox on a HiDPI screen
  3. Zoom a page
  4. Switch to a non HiDPI screen

Actual results:

The viewport within the tab ends up with the wrong size. A padding right and bottom will appear. Mouse input events are ending up with wrong coordinates.
Page reload, further zooming, browser resize or browser restart (with tabs being restored) does not fix the issue.

Expected results:

Like the other UI bits, the page size/viewport should adjust to non-HiDPI

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

Component: Untriaged → Panning and Zooming
Product: Firefox → Core
Blocks: desktop-zoom
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.