Failed to save PDF annotations (Error when saving the document: this.parent is null)
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: yushijinhun, Assigned: calixte)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Steps to reproduce:
- Open a PDF file which is long enough (mine is 34 pages).
- Make an annotation on the first page.
- Scroll to the last page.
- Press Ctrl+S and save the annotated PDF.
Actual results:
- The annotation is NOT saved.
- There is an error log in the console:
Error when saving the document: this.parent is null viewer.js:1914:15
save resource://pdf.js/web/viewer.js:1914
downloadOrSave resource://pdf.js/web/viewer.js:1931
webViewerDownload resource://pdf.js/web/viewer.js:2842
dispatch resource://pdf.js/web/viewer.js:3373
handleEvent resource://pdf.js/web/viewer.js:11932
It's probably because the page where the annotation locates has been unloaded. If I scroll to where I made the annotation, the annotated PDF can be saved successfully.
Expected results:
The PDF annotation should be saved, and no error should occur.
| Reporter | ||
Comment 1•3 years ago
|
||
If you can't reproduce this bug, please try:
- scrolling over the last few pages to ensure the first page is unloaded
- keeping the thumbnail sidebar collapsed
Comment 2•3 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.
| Assignee | ||
Comment 3•3 years ago
•
|
||
It should be fixed in nightly:
https://github.com/mozilla/pdf.js/issues/15780
Could you make a try with the last nightly ?
https://www.mozilla.org/en-US/firefox/channel/desktop/
| Reporter | ||
Comment 4•3 years ago
|
||
Thank you. I switched to Firefox Nightly and it works fine now.
Updated•3 years ago
|
Description
•