Open Bug 1742939 Opened 3 years ago Updated 2 years ago

Selection of a PDF does not cover all characters

Categories

(Firefox :: PDF Viewer, defect)

Firefox 96
Desktop
Windows 10
defect

Tracking

()

Tracking Status
firefox94 --- affected
firefox95 --- affected
firefox96 --- affected

People

(Reporter: ctardon, Unassigned)

Details

(Keywords: nightly-community, Whiteboard: [pdfjs-text-selection])

Attachments

(2 files)

Attached image wrongResult.PNG

Steps to reproduce:

Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868 and scroll to Sample Output of the embedded PDF.
Select the last 6 lines.

Actual results:

Last characters of each line seem not to be selected. (But they are selected because you can copy and paste them)

Expected results:

Last characters should be selected.

Attached image correctResult.PNG
Component: Untriaged → PDF Viewer
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop

I can confirm this issue on win 10 with the latest versions of Firefox. Last chars seems to be unselected but it can be copy-pasted.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

I cannot reproduce with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 Build: 20211220094500
(and neither through mozregression with older releases)

I can't reproduce this either. Is there a specific way to select those lines in order to reproduce the problem?

Flags: needinfo?(raluca.popovici)
Flags: needinfo?(ctardon)

The bug is present with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 Build: 20211220094500.
You have to select "automatic size" in the pdf viewer, and then select them with the mouse, starting from the line that says "Data set 1:"

Flags: needinfo?(ctardon)

I'm still unable to reproduce with the provided steps.

I can reproduce the issue in Nightly97.0a1 Windows10.

STR:

  1. Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868
  2. Zoom-in (e.g. 133%) from Firefox hamburger menu (Don't use the zoom widget in the PDF viewer toolbar.)
  3. Scroll the embedded PDF to bottom
  4. Select text

I still can't reproduce. It must be related to screen resolution or something like that.

(In reply to Alice0775 White from comment #7)

  1. Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868
  2. Zoom-in (e.g. 133%) from Firefox hamburger menu (Don't use the zoom widget in the PDF viewer toolbar.)

I also cannot reproduce this, although based on the above steps I believe that the bug is probably connected with the fact that the PDF Viewer UI itself is being zoomed in (which it shouldn't be).
Most likely the patch in bug 786674 needs to be extended to also cover the case where the PDF Viewer is placed in an <iframe> element, however I don't really know the Firefox zoom-code well enough to attempt a patch unfortunately.

Flags: needinfo?(raluca.popovici)
Whiteboard: [pdfjs-text-selection]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: