Skip to content

[pull] master from mozilla:master - #504

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

[pull] master from mozilla:master#504
pull[bot] merged 8 commits into
code:masterfrom
mozilla:master

Conversation

@pull

@pull pull Bot commented Aug 16, 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 : )

Snuffleupagus and others added 8 commits August 16, 2026 15:17
According to the coverage data this is now dead code; see https://app.codecov.io/gh/mozilla/pdf.js/commit/6694c0eca8c80e3b0aaefa1ad3b76d9317ab2466/blob/src/core/lzw_stream.js?dropdown=coverage#L69

The reason that this check isn't necessary is that the `DecodeStream` class always checks that `!this.eof` holds *before* invoking the `readBlock` method.
Looking at the other `DecodeStream` sub-classes they generally rely on this fact, since there's no other `readBlock` implementation with a similar check.
Finally, note that `this.lzwState` is only removed in a single case where `this.eof = true;` is also being set; see https://github.com/mozilla/pdf.js/blob/6694c0eca8c80e3b0aaefa1ad3b76d9317ab2466/src/core/lzw_stream.js#L108-L112
Remove unnecessary `!lzwState` check in `LZWStream.prototype.readBlock`
Avoid rendering every page for content assertions and read text through the reordered page-view proxies. Wait for the views manager to finish opening, target a stable drag slot, synchronize current-page checks, and handle cloned annotation storage IDs.
The chevron and the header padding used physical properties, so they didn't
mirror in RTL: the chevron ended up flush against the pages icon and the
selector and trailing buttons had their insets swapped.

The menu check mark is a "V" shaped glyph, hence it must be mirrored too, as
it's already done for the check mark of the signature properties.
The toolbar is appended to the text layer, which is always LTR (see
`.pdfViewer .page`), hence the `inset-inline-end` used to position it always
resolved to `right` while in RTL the anchor point is the left edge of the
selection: the toolbar ended up on the other side of the page.

The annotation editor layer already sets its own direction, so just do the same
here.
Fix the RTL layout of the views manager header (bug 2060033)
Set the direction of the floating toolbar in RTL locales (bug 2060032)
…test

Fix intermittent reorganize pages integration tests
@pull pull Bot locked and limited conversation to collaborators Aug 16, 2026
@pull pull Bot added the ⤵️ pull label Aug 16, 2026
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot merged commit 5b42e12 into code:master Aug 16, 2026
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 2026 20:03 Failure
@pull
pull Bot had a problem deploying to code-coverage August 16, 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