Skip to content

Prevent "uncaught exceptions" from the PDFFetchStreamRangeReader and PDFNodeStreamRangeReader classes (issue 22171) - #22173

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:issue-22171
Oct 13, 2026
Merged

timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:issue-22171

Conversation

@Snuffleupagus

@Snuffleupagus Snuffleupagus commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

This could occur if the document is destroyed before the read method is invoked.

Edit: This seems more annoying to test compared to the PDFDataRangeTransport implementation, and given that the issue looks like it's written entirely by AI that doesn't really make me want to spend a lot of time on this.

…d `PDFNodeStreamRangeReader` classes (issue 22171)

This could occur if the document is destroyed before the `read` method is invoked.
@codecov-commenter

codecov-commenter commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 90.33%. Comparing base (6c71c0b) to head (b49fa45).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #22173      +/-   ##
==========================================
- Coverage   90.34%   90.33%   -0.02%     
==========================================
  Files         277      277              
  Lines       68030    68032       +2     
==========================================
- Hits        61461    61455       -6     
- Misses       6569     6577       +8     
Flag Coverage Ξ”
browsertest 66.22% <50.00%> (+0.02%) ⬆️
fonttest 8.98% <ΓΈ> (ΓΈ)
integrationtest 69.35% <50.00%> (-0.02%) ⬇️
unittest 60.42% <50.00%> (-0.02%) ⬇️
unittestcli 58.33% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Harness.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sync-pdfs-for-pdf-js Bot pushed a commit to mozilla/pdf.js.refs that referenced this pull request Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Viewer preview

πŸ—‘οΈ Viewer previews removed.

@timvandermeij
timvandermeij merged commit 296e8c1 into mozilla:master Oct 13, 2026
29 of 30 checks passed
@timvandermeij

Copy link
Copy Markdown
Collaborator

Thank you for hardening this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Unhandled AbortError from PDFFetchStreamRangeReader when the loading task is destroyed before the first read()

3 participants