PDF loses data on save
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
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.
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
|
||
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.
Updated•1 years ago
|
Description
•