Open Bug 1716279 Opened 3 years ago Updated 3 years ago

There is no date format validation on pdf

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 91
Desktop
All
defect

Tracking

()

Tracking Status
firefox90 --- disabled
firefox91 --- wontfix

People

(Reporter: rpopovici, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [pdfjs-form-xfa-js])

Attachments

(2 files)

Attached image 2021-06-14_08h54_17.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. Go to "From" and "To" date fields and input a wrong date format as "10-2021-21"

Actual result:
"From" and "To" date fields accepts wrong format.

Expected result:
"From" and "To" date fields should accept only valid date format(yyyy-mm--dd) as in Adobe Reader.

Blocks: pdf-xfa
Severity: -- → S3
Attached image adobereader.png

Can you check if it's a dynamic PDF?

Flags: needinfo?(cdenizet)

Yes it's a dynamic form.

Flags: needinfo?(cdenizet)
Priority: -- → P3
Blocks: 1717661
No longer blocks: pdf-xfa

This issue also occurs on Mac OS 11.4 and Ubuntu 20.04.

OS: Windows 10 → All
QA Whiteboard: [pdf_xfa_dynamic]
Whiteboard: [pdfjs-form-xfa-js]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: