Closed Bug 1559648 Opened 5 years ago Closed 2 years ago

pdf select word no right

Categories

(Firefox :: PDF Viewer, defect, P3)

67 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: zsytssk, Unassigned, NeedInfo)

Details

(Whiteboard: [pdfjs-c-ux][pdfjs-d-text-selection] )

Attachments

(1 file)

Attached image 20190616075206.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

open pdf, select text

Actual results:

the firefox highlight text is not really selected text

Expected results:

highlight selected text

I saw the selection problem also by disabling WebRender.

It might be better to be checked by PDF Viewer at first.

Component: Graphics: WebRender → PDF Viewer
Product: Core → Firefox

The priority flag is not set for this bug.
:bdahl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bdahl)
Flags: needinfo?(bdahl)
Priority: -- → P3
Whiteboard: [pdfjs-c-ux][pdfjs-d-text-selection]

It's possible the transparent text layer is not properly aligned with the background canvas in that PDF. You can use right-click > Inspect Element on text in the PDF, then in the right pane (Rules), look for a rule that starts with:

.textLayer > span {
    color: transparent;

Uncheck the color rule and a light gray text layer should become visible. How's the alignment with the background? If you have an example PDF where it is very off, that would be worth a look.


However, perhaps it could be a glitch in the extension API. What extension is that? I'm assuming it creates a right-click context menu option.

Extensions cannot read directly from the page in the built in pdf.js viewer because they are treated as privileged pages. Instead, the extension's menu click handler receives various information including a selectionText property: https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/menus/OnClickData

So possibly the error relates to how the selectionText is derived rather than whether the selection shown in the viewer matches the actual selection, if that makes any sense. It would be useful to take a look at the extension and see what it is doing to know whether that is relevant.

Does this bug still exist? Could you provide a sample pdf, which shows this behaviour?

I wasn't able to reproduce it with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 // 20211210215852

Does this bug still exist? Could you provide a sample pdf, which shows this behaviour?

I wasn't able to reproduce it with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 // 20211210215852

Flags: needinfo?(zsytssk)

I assume this is a duplicate or related to https://bugzilla.mozilla.org/show_bug.cgi?id=903877

As we do not have the original pdf it's hard to say.

Should we close it as incomplete?

Yeah let's close it as incomplete. Please reopen if you can still reproduce and you can provide the PDF.

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

Attachment

General

Creator:
Created:
Updated:
Size: