pdf select word no right
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
People
(Reporter: zsytssk, Unassigned, NeedInfo)
Details
(Whiteboard: [pdfjs-c-ux][pdfjs-d-text-selection] )
Attachments
(1 file)
201.01 KB,
image/png
|
Details |
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
Comment 1•5 years ago
|
||
I saw the selection problem also by disabling WebRender.
Comment 2•5 years ago
|
||
It might be better to be checked by PDF Viewer at first.
Comment 3•5 years ago
|
||
The priority flag is not set for this bug.
:bdahl, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
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
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?
Comment 8•2 years ago
|
||
Yeah let's close it as incomplete. Please reopen if you can still reproduce and you can provide the PDF.
Description
•