Closed Bug 1843303 Opened 1 year ago Closed 1 year ago

Unable to resize an image added to the PDF if the PDF is rotated and the image spills over a second page

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
117 Branch
Tracking Status
firefox-esr102 --- disabled
firefox-esr115 --- disabled
firefox115 --- disabled
firefox116 --- disabled
firefox117 --- verified

People

(Reporter: rdoghi, Assigned: calixte)

References

Details

Attachments

(2 files)

Attached video 2023-07-13_15h52_38.mp4

Found in

  • Nightly 117.0a1 (2023-07-12)

Affected versions

  • Nightly 117.0a1 (2023-07-12)

Tested platforms

  • Affected platforms: ALL

Steps to reproduce

  1. Open a PDF file with multiple pages in Firefox.
  2. Rotate the PDF.
  3. Click the Add an image button from the PDF toolbar.
  4. Place the Image so that its bottom right corner is on a second page.
  5. Try to resize the image.

Expected result

  • The user should be able to resize the image even if the bottom right corner falls on a second page.

Actual result

  • The part of the Image that spilled on the second page is not recognized by the Tool and the user cannot resize it.
    The user would have to move the added image up and then resize it, but if the image is larger than the pdf page he will not be able to resize the image.

Regression range

  • N/A
Depends on: 1843305

:rdoghi, if you think that's a regression, could you try to find a regression range using for example mozregression?

I can reproduce this issue with others tools.
The problem is due to the fact we add a z-index to each editor, hence it creates a stacking context which make editors lower than the different annotationEditorLayer.
I think it doesn't really make sense to have an editor which has a part of it outside the current page.

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

Verified as fixed in our latest Nightly build 117.0a1 (2023-07-23).

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

Attachment

General

Created:
Updated:
Size: