mozilla / mozilla/pdf.js

[Bug]: PDF completely black after computer idling overnight.

Open
#21,009 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

other
Dominant language
JavaScript
Stars
53.9k
Forks
10.7k
Avg merge
18h 38m
Merged PRs (30d)
130

Description

Attach (recommended) or Link to PDF file

Left the PDF open overnight with Windows on the lock screen, and woke up to find it completely blacked out. Changing the zoom seems to reset the rendering, which gets around the issue.

Image

about_support.txt

Web browser and its version

Firefox 149.0

Operating system and its version

Windows 11 25H2 (OS Build 26200.8037)

PDF.js version

Whichever is bundled with the Firefox version mentioned above

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

Leave the PDF open overnight in Firefox 149 on Windows, with the screen locked? Not exactly sure yet.

What is the expected behavior?

PDF not black out.

What went wrong?

Already shown above.

Link to a viewer

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached about_support.txt and attempt the reported scenario in Firefox 149 on Windows 11: leave a PDF open overnight while the screen is locked, then check whether it renders black and whether changing zoom restores it. The issue is ready when the idle-related reproduction is reliable and the PDF remains visible afterward, with the result verified against the latest PDF.js version.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.