Skip to content

[pull] master from mozilla:master - #484

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

[pull] master from mozilla:master#484
pull[bot] merged 5 commits into
code:masterfrom
mozilla:master

Conversation

@pull

@pull pull Bot commented Aug 3, 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 5 commits August 2, 2026 18:59
Scanning to the end of the string for every "&" made the entity
resolution quadratic. Stopping at the next "&" also fixes a bare
ampersand swallowing the reference which follows it.
Compared to regular Objects there's a number of advantages to using Maps:
 - They support proper iteration.
 - They have a simple way to check for the existence of data.
 - They have a simple/efficient way to check the number of elements.

If this functionality was added today, I cannot imagine that we'd choose an Object for this data.

In the Firefox PDF Viewer sending Maps to the scripting-implementation should be fine, since it uses the browser `Cu.cloneInto` functionality; see https://searchfox.org/firefox-main/source/toolkit/components/pdfjs/content/PdfSandbox.sys.mjs
However with QuickJS, used by the GENERIC viewer, all data needs to be stringified and Maps are converted into regular Objects (see also PR 21664). Hence the `objects` property, in the scripting-implementation, is converted back into a Map using the (renamed) `createMap` helper function.
[api-minor] Convert `getFieldObjects` to return data in a Map
@pull pull Bot locked and limited conversation to collaborators Aug 3, 2026
@pull pull Bot added the ⤵️ pull label Aug 3, 2026
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot merged commit ae976b9 into code:master Aug 3, 2026
4 of 20 checks passed
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 3, 2026 02: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