Closed Bug 1810800 Opened 1 year ago Closed 1 year ago

A pdf can be too much zoomed with the wheel when ctrl is pressed outside of the viewer

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 111
defect

Tracking

()

VERIFIED FIXED
111 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox109 --- unaffected
firefox110 --- verified
firefox111 --- verified

People

(Reporter: calixte, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

STR:

  • open a pdf
  • click outside Firefox to remove any focus
  • press ctrl
  • move the mouse on the viewer and play with the wheel.

The document is a way too much zoomed/unzoomed.

It seems to me that this might be quite easy to work-around, by simply using a "mouseleave" eventListener that forcibly sets PDFViewerApplication._isCtrlKeyDown = true.

Calixte, are you working on this regression for our releases in flight? Should we wontfix for 110? Thanks

Flags: needinfo?(cdenizet)

I've got a WIP patch locally, along the lines in https://bugzilla.mozilla.org/show_bug.cgi?id=1810800#c1 since that seemed to work, so I could "steal" this bug and submit a patch :-)

Assignee: cdenizet → jonas.jenwald
Flags: needinfo?(cdenizet)
Assignee: jonas.jenwald → cdenizet

Calixte, are you planning an uplift for beta or should your fix ride the 111 train? Thanks.

Flags: needinfo?(cdenizet)

Comment on attachment 9314875 [details]
Bug 1810800 - Fix zooming with the mouse wheel in PDF.js r=#pdfjs-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: The users could be annoyed when they want to zoom a pdf in using ctrl+mouse wheel.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See https://bugzilla.mozilla.org/show_bug.cgi?id=1810800#c0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This is a small change and it can be easily verified by QE.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(cdenizet)
Attachment #9314875 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9314875 [details]
Bug 1810800 - Fix zooming with the mouse wheel in PDF.js r=#pdfjs-reviewers

Approved for 110 beta 8, thanks.

Attachment #9314875 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
QA Whiteboard: [qa-triaged]

Reproduced the issue on Firefox 110.0b7 under Windows 11 by following the STR from Comment 0.

The issue is no longer reproducible on Firefox 111.0a1 (2023-01-30) and Firefox 110.0b8 (treeherder build) on the same system. Seems that Ubuntu and macOS only scrolls the PDF when holding ctrl with focus outside Firefox.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: