Open Bug 1869535 Opened 7 months ago Updated 7 months ago

The Cut and Copy options from the Context menu are displayed for Highlights inside a PDF file

Categories

(Firefox :: PDF Viewer, defect)

Desktop
Unspecified
defect

Tracking

()

Tracking Status
firefox-esr115 --- disabled
firefox120 --- disabled
firefox121 --- disabled
firefox122 --- affected

People

(Reporter: rdoghi, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [pdfjs-ux][pdfjs-ux-wanted])

Attachments

(1 file)

Attached video 2023-12-12_15h33_43.mp4

Found in

  • Nightly 122.0a1 (2023-12-12)

Affected versions

  • Nightly 122.0a1 (2023-12-12)

Affected platforms

  • all

Steps to reproduce

  1. Open a PDF file with text in Firefox.
  2. Highlight any text with any color.
  3. Right Click the Highlight from the PDF file
  4. Select the Cut or Copy options from the context menu

Expected result

  • The Cut and Copy options should not be displayed for Highlights in the Context menu.
  • The Ctrl+C or Ctrl+X shortcuts to Copy and Cut should not work for Highlights.

Actual result

  • The Highlighted text is not copied when using the context menu to copy the Highlight.
  • The Cut option will just delete the applied Highlight.
  • Ctrl + X shortcut will delete the Highlight.

Regression range
N/A

This is an interesting bug. Ryan, do you have any thoughts on what the behavior should be?

Flags: needinfo?(rcasey)
Whiteboard: [pdfjs-ux][pdfjs-ux-wanted]

Thanks for including me here. I think this is related to this bug that @Rares Doghi found. So I think this is part of a bigger issue around tool behavior and the inconsistencies between them. I'd like to point out there is some missing functionality here that we are aware of based on your outline of remaining to-dos, @Marco Castelluccio—
One—a user should be able to highlight text and right-click with an option to create a highlight and
Two—A user should see an "undo" option when they delete a highlight (or ink/image/text for that matter).

I think adding these flows can start to help delineate between selecting/creating annotations and manipulating existing annotations, as this bug demonstrates.

I think this needs some more investigation and alignment from the team. But for the interim, my thought is to agree with Rare's expectation of the expected results above.

Flags: needinfo?(rcasey)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: