Skip to content

[pull] master from mozilla:master#446

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

[pull] master from mozilla:master#446
pull[bot] merged 10 commits into
code:masterfrom
mozilla:master

Conversation

@pull

@pull pull Bot commented Jul 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 : )

nicolo-ribaudo and others added 10 commits June 30, 2026 10:45
Chromium 148+ improved their selection behavior when it comes to absolutely
positioned elements, thus making text selectino in PDF.js much better.

Unfortunately this does not only mean that the workaround we currently have
for Chromium is unnecessary, but it actually become harmful. It conflicts
with Chromium's new behavior, making text selection *worse* on mobile.

As the change has been released in Chrome only a month ago, this patch keeps
the workaround for older Chromium versions. There is no easy way to
feture-detect is, so unfortunately we need to do user agent version detection.
…etFont

The font size (Tf) and the text matrix (Tm) can appear in any order in an
appearance stream. Applying the scale factor eagerly in setFont missed the
case where Tf precedes Tm (e.g. Skia-generated FreeText), yielding a wrong
guessed font size.
…Manager` class (PR 21247 follow-up)

This has a couple of advantages:
 - It allows accessing and iterating `this.#results` directly, without having to (needlessly) create a temporary array.

 - By moving the "worst status" computation into its own getter, it can be re-used from the `#updateButtonState` method as well which reduces code duplication.
…addPasteButton` method

Rather than effectively duplicating code, we can re-use the existing helper here as well.
…ct-chrome

Avoid text selection workaround in modern Chromium
…10nArgs

Use the `#getPageL10nArgs` helper in the `PDFThumbnailView.prototype.addPasteButton` method
…er-#bannerState

Move the `bannerStateForResults` helper into the `SignaturePropertiesManager` class (PR 21247 follow-up)
Apply the appearance-stream scale factor when text is shown, not on setFont
@pull pull Bot locked and limited conversation to collaborators Jul 3, 2026
@pull pull Bot added the ⤵️ pull label Jul 3, 2026
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot merged commit 5b100c4 into code:master Jul 3, 2026
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 2026 20:03 Failure
@pull pull Bot had a problem deploying to code-coverage July 3, 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.

4 participants