Closed Bug 1722038 Opened 3 years ago Closed 3 years ago

[XFA] Input field is incorrectly displayed as a scrollable field

Categories

(Firefox :: PDF Viewer, defect, P2)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox-esr91 --- fixed
firefox90 --- disabled
firefox91 --- disabled
firefox92 --- fixed
firefox93 --- fixed

People

(Reporter: danibodea, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [pdfjs-form-xfa])

Attachments

(3 files, 1 obsolete file)

Attached file ocrmypdf-LINK-296-0.pdf (deleted) —

Note

  • When the user loads a specific PDF file, he will notice that the "Background" input field is incorrectly displayed as a scrollable field.

Affected versions

  • Nightly v91.0a1

Affected platforms

  • all

Preconditions

  • Flip the "pdfjs.enableXfa" pref to true.

Steps to reproduce

  1. Launch browser.
  2. Load the attached PDF file.
  3. Observe the "Background" field.

Expected result

  • Only one text line is displayed and it is scrollable.

Actual result

  • All text lines are displayed and it is not scrollable.

Regression range

  • Not a regression, but an implementation fault.
Attached image field incorrectly displayed.png (deleted) —
Priority: -- → P2

The pdf is not displayed using upstream pdf.js and the patch above aims to fix that.
Anyway something is still wrong when binding because of xml data in datasets without any namespace which should interpreted as xhtml.
So I think that before trying to bind we must know the type of the node in the template in order to guess that the value may be some xhtml.

Depends on: 1723114

This bug is blocked by bug 1723114, a regression.

Attachment #9233685 - Attachment is obsolete: true
Blocks: 1727377
Attached image alignment issues on some fields.png (deleted) —

This issue 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

But it created a worse rendering of another field: bug 1727377.
Please close this one as such. Thanks.

Flags: needinfo?(cdenizet)
QA Whiteboard: [pdf_xfa_generic]
Status: NEW → RESOLVED
Closed: 3 years ago
Depends on: 1722768
Flags: needinfo?(cdenizet)
Resolution: --- → FIXED

I can't verify this fix until its dependency is also verified.

No longer blocks: 1727377
Depends on: 1727377
Depends on: 1741445
Target Milestone: --- → 93 Branch
Whiteboard: [pdfjs-form-xfa]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: