Closed Bug 1716294 Opened 3 years ago Closed 3 years ago

Text field should have a limit of chars

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 91
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox91 --- verified

People

(Reporter: rpopovici, Assigned: calixte)

References

Details

Attachments

(3 files)

Attached image 2021-06-14_10h21_26.png

Tested with:
Nightly 91.0a1 (2021-06-13)

Tested on:
Win 10

Preconditions:
In about:config, set pdfjs.enableXfa = true

Steps:

  1. Launch firefox
  2. Open the following pdf: https://bug1671648.bmoattachments.org/attachment.cgi?id=9182033
  3. Input a long text into the text fields from "BACKGROUND INFORMATION" section.

Actual result:
Text fields has no limit of chars.

Expected result:
Text fields should have a limit of chars as in Adobe Reader.

Attached image adobereader.png
Blocks: 1716293
No longer blocks: 1716293
No longer depends on: 1716281, 1716288

I missed that in the specs but there is a maxChars property in text element.
Anyway a patch is in review:
https://github.com/mozilla/pdf.js/pull/13559

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Blocks: 1716293
Blocks: 1716809
No longer blocks: 1716809
No longer blocks: 1716293
Priority: -- → P1
Depends on: 1717132

This should now be fixed, Ralu can you verify?

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(raluca.popovici)
Resolution: --- → FIXED

I can confirm that this issue has been fixed. The same max character number is allowed in both Adobe Reader and the latest Nightly for each input box individually.

Status: RESOLVED → VERIFIED
Flags: needinfo?(raluca.popovici)
No longer depends on: 1717132
Depends on: 1717132
Blocks: 1718048
No longer blocks: 1718048
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: