When malformed PDF is generated, investigate whether we can verify the pdf before sending it to android
Categories
(GeckoView :: General, task)
Tracking
(Not tracked)
People
(Reporter: npoon, Assigned: fmasalha, Mentored, NeedInfo)
References
Details
(Keywords: good-next-bug, Whiteboard: [fxdroid][group1])
Attachments
(1 file)
As seen in Bug 1961443, if a malformed PDF is generated in the print preview, fenix just crashes with java.lang.RuntimeException: Cannot print a malformed PDF file. On the GV side, we should consider preventing the app from crashing by catching this exception.
We do a lot of the PDF processing in GeckoViewPrintDocumentAdapter.java. makeTempPdfFile seems like a place we could check if it is actually a PDF or somewhere in that area.
It may also be checking something around here
| Reporter | ||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 1•6 months ago
|
||
Updated•6 months ago
|
Comment 4•5 months ago
|
||
Comment 5•4 months ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:fmasalha, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Comment 6•4 months ago
|
||
We're still looking at the test failure and looking for the fix. The failure is due to something subtle happening in CI that doesn't reproduce locally, so harder to debug. Root cause is probably due to a test cleanup or a test timing issue on the newly introduced malformed PDF test and the print spooler.
Description
•