Skip to content

[pull] master from mozilla:master - #493

Merged
pull[bot] merged 19 commits into
code:masterfrom
mozilla:master
Aug 9, 2026
Merged

[pull] master from mozilla:master#493
pull[bot] merged 19 commits into
code:masterfrom
mozilla:master

Conversation

@pull

@pull pull Bot commented Aug 9, 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 19 commits August 7, 2026 09:13
When a non-embedded CID font lacks both a glyph map and a ToUnicode entry, its CIDs are glyph IDs and PDF.js must infer an ordering. The standard-font map does not match Trebuchet MS or Windows Symbol.

Build the Trebuchet MS mapping from MacStandardGlyphOrdering plus supplemental entries, and map Windows Symbol glyph IDs by character code. Also map Adobe arrow and integral extenders from private-use code points to Unicode.

It fixes #21713.
Preserve the pinch state across tracked-pair changes so scaling resumes without crossing the dead zone again. Reset it once fewer than two tracked touches remain.

Also re-arm the pointerdown guard when one touch remains, preventing a returning finger from starting an editor drag.
The `RefSet` and `RefSetCache` classes are old enough that they predate a lot of modern JavaScript features, e.g. originally they stored their data in regular Objects.
About six years ago, see PRs 11977 and 12089, these classes were converted to use a Set respectively a Map internally.

Given that `RefSet` is a wrapper around a standard Set, it seems reasonable to re-name `RefSetCache` to `RefMap` when it's a wrapper around a standard Map.
This allows the viewer to check for enabled/disabled permissions using `Set.prototype.has()`, which is generally more efficient than `Array.prototype.includes()`.

*Note:* Permissions are not enabled by default in the viewer.
[api-minor] Convert `getPermissions` to return data in a Set
Improve glyph mapping for non-embedded CID fonts
Re-name the `RefSetCache` class to `RefMap`
Expose more tagged PDF structure roles
Hide unavailable alt text settings
… ones in the unit-tests

Generally speaking it seems like a good idea to have the unit-tests be *explicit* about their expected values, rather than accepting "arbitrary" truthy/falsy values.
Also, add a unit-test for the `parent` argument since that was currently missing.
…uthy-toBeFalsy

Replace most `toBeTruthy()`/`toBeFalsy()` matchers with more specific ones in the unit-tests
Change `RefSet` and `RefMap` to use actually private class fields
…iveness

Improve ink drawing responsiveness
@pull pull Bot locked and limited conversation to collaborators Aug 9, 2026
@pull pull Bot added the ⤵️ pull label Aug 9, 2026
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot merged commit 7364bca into code:master Aug 9, 2026
4 of 20 checks passed
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 9, 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.

3 participants