Open Bug 1838855 Opened 1 years ago Updated 1 year ago

Pdf files are not correctly saved on PC when using the Save button.

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 115
Desktop
All
defect

Tracking

()

REOPENED
116 Branch
Tracking Status
firefox114 --- wontfix
firefox115 --- wontfix
firefox116 --- verified

People

(Reporter: mchiorean, Assigned: calixte)

References

Details

Attachments

(3 files)

Attached image screenshotjune16.png

Found in

  • 115.0b6 (20230613195413)

Affected versions

  • 114.0
  • 116.a1

Tested platforms

  • Affected platforms: Win10, Win7.
  • Unaffected platforms: -

Steps to reproduce

  1. Open link https://www.irs.gov/pub/irs-pdf/f1040.pdf
  2. Check all checkboxes from Filing status section.
  3. Click on Save button next to printing.
  4. Save the pdf.
  5. Open saved pdf on PC. Check the checkboxes.

Expected result

  • On saved pdf all checkboxes should be checked.

Actual result

  • Only the last selected checkbox is displayed as checked (see screenshot attached).

Additional notes

  • I was able to reproduce it on the 114.0 release also.
  • Will look for a regression.
  • Issue seems to reproduce only when using the Save option. Issue is not reproducing if using the print option.
Severity: -- → S3
Has STR: --- → yes

I can't reproduce in Nightly on Windows 11.

This pdf contains the form in two formats: Acroform and XFA.
Since Acroform support is a way better than XFA one, we decided to render Acroform.
By design, the Acroform doesn't specify that the checkboxes are mutually exclusive.
We could explore the XFA to try to figure out something but in this particular case, even if it's possible to define a group of buttons as a radio group, by design, the mutually exclusive behavior is implemented with some JS callbacks.
To conclude, this pdf is poorly designed.
In considering the items associated to the checkboxes, I suppose it's obvious that they're mutually exclusive.

Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → WONTFIX

Ah I can actually reproduce when opening the PDF saved from Firefox in Adobe Acrobat.

In Adobe Acrobat, you are forced to only select one box at a time.

I managed to read this pdf in Acrobat without XFA (in disabling JS) and the checkboxes behave correctly.
In playing with the T field, I noticed that if I change the name c1_0[0] to X1_0[0] then the button is excluded from the group.
My guess is that when we've have some terminal nodes in the Field tree with an index then it means that those nodes belong to the same group.
Anyway it isn't a regression and I think I've a fix.

Assignee: nobody → cdenizet
Status: RESOLVED → REOPENED
Priority: -- → P1
Resolution: WONTFIX → ---
Status: REOPENED → RESOLVED
Closed: 1 years ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

The patch landed in nightly and beta is affected.
:calixte, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox115 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)

This bug is likely pretty rare, hence it can wait for the next cycle.

Flags: needinfo?(cdenizet)
Flags: qe-verify+

Reproduced the issue with Firefox 115.0b6 (2023-06-15) on Win 10.
The issue is verified fixed with Firefox 117.0a1 (20230726093921) and Firefox 116.0 (20230724170120) on MacOS 12, Win 10 and Ubuntu 22.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

The workaround wasn 't good so the patch has been reverted.
We'd need to either render the xfa or extract some information from the xfa itself when rendering the acroform.

Status: VERIFIED → REOPENED
Priority: P1 → P3
Resolution: FIXED → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: