Closed Bug 1784850 Opened 2 years ago Closed 2 years ago

PDF in viewer fuzzy after resuming from suspend after attaching HiDPI monitor

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 105
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: pmenzel+bugzilla.mozilla.org, Assigned: Snuffleupagus)

References

Details

(Whiteboard: [pdfjs-regression])

Attachments

(2 files)

Steps to reproduce:

Using Nightly 105.0a1, 20220814095107, having a PDF open in a viewer on a 1366x768 laptop system, suspend the system, attach a HiDPI monitor, and resume.

Actual results:

The font of the PDF was fuzzy.

Expected results:

The font of the PDF should be sharp. Reloading the page, the screen is sharp.

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

Component: Untriaged → PDF Viewer

We could redraw the current pages when the devicePixelRatio is changing.

window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`).addEventListener("change", ....)

@Snuffleupagus, wdyt ?

Flags: needinfo?(jonas.jenwald)
Flags: needinfo?(jonas.jenwald)
Assignee: nobody → jonas.jenwald
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Whiteboard: [pdfjs-regression]

Paul, can you still reproduce this bug in latest Nightly?

Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

(In reply to Marco Castelluccio [:marco] (back Aug 22) from comment #5)

Paul, can you still reproduce this bug in latest Nightly?

No, the problem seems to be fixed in 105.0a1, 20220821185924.

Thank you all for fixing the issue so quickly.

Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

Thank you for reporting the bug and verifying the fix!

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: