PDF Viewer uses color of last visited website
See original GitHub issueAs the title, says, when I open a PDF in Firefox the header color doesn’t change and instead keeps the one from the last website. The console says “No connection to content script.” The correct theme should be the same as used in debugging windows.
I would suggest either checking if the title ends on .pdf
, or using a default theme whenever an error occurs.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
pdf viewer not displaying colors correctly | Firefox Support Forum
Hi, I find that recently, my Firefox 102 (on MacOS 12.4, 2019 MBP 16) no longer displays colors correctly in pdf files.
Read more >Color-managing documents, Adobe Acrobat
Color -managed documents in Adobe Acrobat provide greater control over the appearance of the final document. Using color profiles in a ...
Read more >Is there a way to style Google Chrome default PDF viewer
The background color of the PDF viewer is controlled by the file which, in the Chrome source tree, is named chrome/browser/resources/pdf/ ...
Read more >9 Chrome PDF Viewer Tips You Need to Know (Updated 2022)
Did you know you can customize the Chrome PDF Viewer? Learn how to enable, disable and configure the default PDF viewer for Google...
Read more >Avoid PDF for On-Screen Reading - Nielsen Norman Group
Forcing users to browse PDF files causes frustration and slow task completion, compared to standard webpages. Use PDF only for documents ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately, it doesn’t work since the website doesn’t end with
.pdf
. However, the tab title ends with.pdf
, so it should be easy to fixThis is going to be fixed in v1.6.4. Besides PDF viewer, tab bar color for image viewer, plain text viewer, load fail error page, and local HTML will also be fixed. v1.6.4 will be out in this week and also includes your contribution.
Falling back to default when an error occurs can cause flickering, because for the first couples of millisecond of page loading, content script isn’t loaded. This is more obvious when the network connection is bad or the website is big.