Closed Bug 1895909 Opened 9 months ago Closed 9 months ago

Weird behavior with image resizer

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- verified
firefox128 --- verified

People

(Reporter: marco, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

While resizing an image to a smaller size, the image starts sliding down and moves outside the resize box.

I tried this and wasn't able to reproduce it - Can you provide a PDF?

Flags: needinfo?(mcastelluccio)

It's happening on any PDF for me, I think Calixte was able to reproduce and has a potential fix.

Flags: needinfo?(mcastelluccio) → needinfo?(cdenizet)

It can be easily reproduced in decreasing enough the size in using one of the diagonal resizers.
It's a regression from bug 1894705 and especially from:
https://github.com/mozilla/pdf.js/pull/18019

Assignee: nobody → cdenizet
Severity: -- → S3
Status: NEW → ASSIGNED
Flags: needinfo?(cdenizet)
Priority: -- → P1
Regressed by: 1894705
Attachment #9401648 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Added images in a pdf could be at a wrong position
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: See comment#3
  • Risk associated with taking this patch: Low
  • Explanation of risk level: Small change and it's a backout
  • String changes made/needed: No
  • Is Android affected?: no
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

Set release status flags based on info from the regressing bug 1894705

QA Whiteboard: [qa-triaged]

I am attempting to verify this fix in all OSes, but I am having a hard time reproducing it. Could you provide some more information about its reproduction? Resizing the browser window that has a PDF with images in focus does not seem to create any unwanted behavior. Also, I don't know of a way to resize an image inside a PDF since it's a viewer and not an editor. I may have misunderstood the steps to reproduce here...
Thank you!

Flags: needinfo?(cdenizet)

There is a button in the toolbar, in the top right, to add an image. The first step is to add an image, then use the resizing controls (the diagonal one) to make it smaller.

Flags: needinfo?(cdenizet)

I can reproduce this issue in Beta v127.0b1 and confirm the fix in Nightly v128.0a1. This issue was tested in Windows 10, MacOS 11 and Ubuntu 22.
This fix will be verified in Beta 127 when it lands. Thank you.

OS: Unspecified → All
Hardware: Unspecified → Desktop
Attachment #9401648 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This fix was verified in Beta v127.0b3 on Windows 10, MacOS 11 and Ubuntu 22.

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: