Closed Bug 1879559 Opened 2 years ago Closed 2 months ago

Text selection in PDFs is barely visible

Categories

(Firefox :: PDF Viewer, defect)

defect

Tracking

()

VERIFIED FIXED
153 Branch
Accessibility Severity s3
Tracking Status
relnote-firefox --- 154+
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox122 --- wontfix
firefox123 --- wontfix
firefox124 --- wontfix
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- wontfix
firefox152 --- wontfix
firefox153 --- verified
firefox154 --- verified

People

(Reporter: calixte, Unassigned)

References

Details

(Keywords: access, Whiteboard: [pdfjs-accessibility])

Attachments

(3 files)

Attached image image.png

STR:

  • switch to HCM
  • open a pdf with some text
  • select some text

A way to fix this bug is to draw the rectangles in a svg element in order to be able to apply a filter to have the correct colors for the background and the foreground.
That said it makes the highlighting feature hard to use in HCM.

Accessibility Severity: --- → s3

We probably want to use the system color SelectedItem for the background and SelectedItemText for the foreground to communicate the selected state of the text and ensure the expected by the user color combination is respected too. Just in case, the reference in Figma (SSO login needed)

Severity: -- → S3

Rewording the title because this is not only about HCM.

Summary: In HCM, the text selection is barely visible → Text selection in PDFs is barely visible

Release Note Request (optional, but appreciated)
[Why is this notable]: Vastly improved visual indication of selected text on PDFs, matching the behavior Firefox has on web pages.
[Affects Firefox for Android]: Yes.
[Suggested wording]: Text selected in PDFs is now highlighted clearly like in normal web pages. The selection color also follows OS settings like high-contrast mode.
[Links (documentation, blog post, etc)]: N/A

relnote-firefox: --- → ?
Depends on: 2041075
No longer depends on: 2041075
Depends on: 2041566
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

Note added to our 153 nightly release notes in the Changed section with this wording:

Text selected in PDFs is now highlighted clearly like in normal web pages. The selection color also follows OS settings like high-contrast mode.

I am keeping the relnote-firefox? flag set until we include this note in our final 153 release notes, thanks.

I am keeping the relnote-firefox? flag set until we include this note in our final 153 release notes, thanks.

(Change of internal process)

QA Whiteboard: [qa-triage-done-c154/b153] [qa-ver-needed-c154/b153]
Flags: qe-verify+
Attached image winvmachighlight.png

Issue is reproducible on Firefox 152.0 on Windows 10.

Verified as fixed on Firefox Nightly 154.0a1 and Firefox 153.0b1 - with both HCM enabled/disabled -on Windows 10 and Ubuntu 22.

However, on macOS, the highlight is more subtle and the text is harder to read compared to Windows/Ubuntu, as seen in the attached screenshot.

Should we file a bug for macOS for this particular scenario ?

Flags: needinfo?(cdenizet)

Should we file a bug for macOS for this particular scenario ?

:oardelean, yes please.

Flags: needinfo?(cdenizet)

Thank you!

I have logged bug 2048531 as a follow-up for macOS.

Marking the bug as verified based on Comment 7.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c154/b153] [qa-ver-needed-c154/b153] → [qa-triage-done-c154/b153] [qa-ver-done-c154/b153]
Flags: qe-verify+
See Also: → 2048531

Deactivated in 153.0b13, new target is 154.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: