PDF viewer doesn't display link text in color
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: dough, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
Open a PDF file or internet link to a PDF file.
Actual results:
Internet links in the PDF file are not displayed in color (usually blue).
Expected results:
All other PDF viewers I have, Mac Preview, Mac Pages and Adobe Acrobat Viewer all display the links in color (blue).
Newest version of Thunderbird (102.0) has the same problem.
Reporter | ||
Comment 1•2 years ago
|
||
MacOS version 11.6.7. "User Agent:" above is wrong.
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•2 years ago
|
||
:Doug, could you attach a pdf with a link with an incorrect color ?
Reporter | ||
Comment 4•2 years ago
|
||
Add screen shot of PDF document displayed without the links being colored.
Reporter | ||
Comment 5•2 years ago
|
||
This is the PDF document displayed in the screen shot just uploaded.
Comment 6•2 years ago
|
||
I can't reproduce in Firefox 102, 103 and 104 (nightly).
Do you have some specific color settings (in the hamburger menu, Settings > Language & Appearance > Colors) ?
Reporter | ||
Comment 7•2 years ago
|
||
Comment 8•2 years ago
|
||
Hi Doug,
I believe using the "use system colors" option causes this, could you uncheck that and see if the links turn blue?
Thanks!
Reporter | ||
Comment 9•2 years ago
|
||
You are right, that does fix it...but I am mystified as to why since the setting below "Override the colors specified by the page with your selections above" was set to "Never". Can you help me understand what's going on there?
Comment 10•2 years ago
|
||
Because of a bug...
For the pdf viewer we rely on the Canvas & CanvasText css values, and I thought they're set only when HCM (High Contrast Mode) is enabled because all what I read about those colors was related to a11y.
Very likely in your case, your system was defining some colors and they were just used as in a HCM context.
Comment 11•2 years ago
|
||
It should be fixed thanks to:
https://github.com/mozilla/pdf.js/commit/fe93742c8f912dc97f51531ca37e9250ad612f60
Description
•