Closed Bug 1721986 Opened 4 years ago Closed 4 years ago

[XFA] Text is missing; only the first paragraph is displayed

Categories

(Firefox :: PDF Viewer, defect, P2)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- verified
firefox90 --- disabled
firefox91 --- verified
firefox92 --- verified
firefox93 --- verified

People

(Reporter: danibodea, Assigned: calixte)

References

Details

(Keywords: regression)

Attachments

(2 files)

Note

  • When the user loads a specific PDF he will notice that all text is missing.

Affected versions

  • Nightly v92.0a1

Affected platforms

  • all

Steps to reproduce

  1. Launch browser.
  2. Flip the pdfjs.enableXfa to true.
  3. Load the attached PDF file.

Expected result

  • Text is displayed.

Actual result

  • All text is missing.

Regression range

  • This is a regression:
    Bug 1720361 - Update pdf.js to version 2.10.316 r=pdfjs-reviewers,calixte
    Differential Revision: https://phabricator.services.mozilla.com/D119800
    2021-07-23T12:22:39.631000: DEBUG : Did not find a branch, checking all integration branches
    2021-07-23T12:22:39.633000: INFO : The bisection is done.
Attached image text is missing.png

The xfa:datasets stream contains a xhtml node which needs to be seen as belonging to xhtml namespace in order to build correctly.
So I must add an exception in this patch:
https://github.com/mozilla/pdf.js/commit/3fa319ab0e89846d5fa90514f763449d39515843
which renders namespace-agnostic nodes under datasets and we must handle correctly this node as a all when binding data in template.

Severity: S2 → S1
Priority: -- → P1
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Severity: S1 → S2
Priority: P2 → --

This should actually be pretty rare.

Priority: -- → P2

This was fixed by:
Bug 1722768 - Update pdf.js to version 2.11.22 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D121125

Please set its status as such. Thank you.

Flags: needinfo?(cdenizet)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Depends on: 1722768
Flags: needinfo?(cdenizet)
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

This fix has been verified on Nightly v93.0a1, Beta v92.0b8, Release v91.0.2 and ESR v91.0.1esr.

QA Whiteboard: [pdf_xfa_generic]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: