question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDF Viewer uses color of last visited website

See original GitHub issue

As 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:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
l0drexcommented, Jul 14, 2022

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 fix

1reaction
YS-Wongcommented, Jul 13, 2022

This 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found