Skip to content

[pull] master from mozilla:master#422

Merged
pull[bot] merged 7 commits into
code:masterfrom
mozilla:master
Jun 18, 2026
Merged

[pull] master from mozilla:master#422
pull[bot] merged 7 commits into
code:masterfrom
mozilla:master

Conversation

@pull

@pull pull Bot commented Jun 18, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

calixteman and others added 7 commits June 18, 2026 16:03
Annotation-local attachments (those not in the catalog `/Names` tree) were
resolved through a dictionary cache that `Catalog.cleanup` clears, so their
content became unreachable once the idle cleanup had run.

Encode the reference of the embedded content in the attachment id and re-fetch
it from the xref on demand instead of caching the dictionary, so the content
stays reachable without anything having to survive cleanup.

It fixes a regression introduced by #21351.
Re-derive annotation attachment content from the xref after cleanup
…t` method

This branch isn't covered by any tests, and as far as I can tell it's been unused ever since PR 11601 which simplified the JPEG image handling.
Prior to that we'd create an `Image` instance in one case, see [this code](https://github.com/mozilla/pdf.js/pull/11601/changes#diff-082d6b37ad01db7ac97cc07c6ddb0dc52040484c5ef91b110b072f50144d9f39L2312-L2314), which is why that branch was necessary since `new Image()` creates a `HTMLImageElement` instance which in itself is an instance of `HTMLElement`; note [this](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) respectively [this](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement).
…tion

This branch isn't covered by any tests, and looking at the two existing call-sites we only ever pass in a `CanvasRenderingContext2D` interface to this function.
Based on the git history this branch was added in PR 3312, however as far as I can tell it doesn't actually appear to have been necessary even back then!?
Remove unused branches in the `src/display/canvas.js` file
Avoid too long BlueScale value when rewriting a CFF font
@pull pull Bot locked and limited conversation to collaborators Jun 18, 2026
@pull pull Bot added the ⤵️ pull label Jun 18, 2026
@pull pull Bot merged commit e20c810 into code:master Jun 18, 2026
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage June 18, 2026 20:03 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants