Closed Bug 2055555 Opened 1 day ago Closed 19 hours ago

Text selection rectangle shows wrong / different part of opened PDF document

Categories

(Firefox :: PDF Viewer, defect)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox152 --- unaffected
firefox153 --- unaffected
firefox154 --- fixed

People

(Reporter: Tobbi, Assigned: gw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image Screenshot

I'm seeing a bug with text selection in Firefox Nightly (not Release, though). I've already filed this bug on GitHub as https://github.com/mozilla/pdf.js/issues/21584

When selecting text in a PDF document, the selection box does not contain the text selected, but a different part of the PDF file that's being viewed.

Steps to reproduce:

  1. Open the pdf.js example viewer at https://mozilla.github.io/pdf.js/web/viewer.html
  2. Highlight / select the heading "Trace-based Just-in-Time Type Specialization for Dynamic
    Languages"

Expected results:
The highlight box / rectangle contains the text "Trace-based Just-in-Time Type Specialization for Dynamic
Languages"

Actual results:
The highlight box / rectangle contains part of the name section below the title.

It would be great if you could try using mozregression to pinpoint what caused this.

Flags: needinfo?(tobbi.bugs)

:gw can you have a look please ?

Flags: needinfo?(tobbi.bugs) → needinfo?(mozilla)

Set release status flags based on info from the regressing bug 2054854

A backdrop-filter resolve target can establish a different raster root
than the parent surface it reads back from (for example when it promotes
to a root-snapping raster root inside a scrolled subtree). handle_resolve
intersected the dest and src content rects as if they shared a space,
offsetting the backdrop readback by the scroll amount. Store the
dest->src raster mapping on the ResolveOp and apply it so we read back
the region the backdrop actually covers. The mapping is the identity when
the raster roots match, so the common case is unchanged.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mozilla)
Pushed by gwatson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cf9aa2b437a3 https://hg.mozilla.org/integration/autoland/rev/6d408e3625f1 Map the backdrop readback into the parent surface's raster space r=gfx-reviewers,nical
Status: ASSIGNED → RESOLVED
Closed: 19 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: