Closed Bug 1823262 Opened 2 years ago Closed 1 years ago

PDF loses data on save

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 111
defect

Tracking

()

RESOLVED DUPLICATE of bug 1851517

People

(Reporter: secondsun, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Steps to reproduce:

Use this character sheet (https://media.wizards.com/2016/dnd/downloads/5E_CharacterSheet_Fillable.pdf)

Fill out a field, unfocus the field, focus the field, edit the field, use the ctrl+s shortcut to save the file, and the field will revert.

Actual results:

Please see linked video : https://drive.google.com/file/d/1ykdyEij3aWU4fCSbJ1k7ivcdmzpiR2vc/view?usp=sharing

At time stamp 0:14 we have the field "Personality Traits" with an edited field. I save the file and reload the pdf. The field is reverted to blank.

At time stamp 0:30 the file is saved and reloaded and the edit persists.

At time stamp 0:45 the field is edited and reverted after a save.

Expected results:

The file should save correctly and those edits should be available on a reload.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

It's because of:
https://github.com/mozilla/pdf.js/blob/9321758d912c296647569574f60c62fe767f4a9f/src/display/annotation_layer.js#L1226

on ctrl+s the field is blurred in favor of the save dialog and the related target is null.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 1 years ago
Duplicate of bug: 1851517
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.