More background on this issue, since it is a bit of a compound bug, there are really two layers to this flow and a bug can appear in either layer: 1. Make a PDF using the "Save as PDF" Engine 2. View that PDF in the viewer * Has some similarities to bug 1875087. Linking since it is a very adjacent bug, but I don't exactly think they are directly related and mostly to rule it out. I saw what I think are two errors as well: ### File Not Found Error I think this error is on the layer around giving the data to the PDF viewer. I reproduced file not found by selecting an article with +++ in the live ticker title on https://www.n-tv.de/. This tries to generate a download with `+++++` in the title, which is maybe an invalid character somewhere in the flow. Could also possibly be a filename character limit somewhere? Let me know if you saw "File not found" outside of a special character in the download name. ``` 03-26 10:24:29.989 24518 24544 E ContentInputStream: Cannot read the uri: content://org.mozilla.fenix.feature.downloads.fileprovider/Download/Download/Ukraine-Krieg%20im%20Liveticker%3A%20%2B%2B%2B%2015%3A15%20Putins%20%22Behauptungen%20machen%20%C3%BCberhaupt%20keinen%20Sinn%22%20%2B%2B%2B%20-%20n-tv.de.pdf 03-26 10:24:29.989 24518 24544 E ContentInputStream: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:151) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:814) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1773) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.geckoview.ContentInputStream.isReadable(ContentInputStream.java:139) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:659) ``` A bit bizarre is I get this error if I do the flow "Save as PDF" and press "Open". However, I do not get this error if I navigate to the file in the file explorer and open with "Firefox". So, it seems to be an access or passing data problem? When successfully opening from files the content is: `content://com.google.android.apps.nbu.files.provider/2/1000000464` ### Only showing logo error This is an error occurring in the engine generating the PDF. I was able to reproduce it both on Android and Desktop and Chrome this way: * This [article](https://www.n-tv.de/wirtschaft/der_boersen_tag/Der-Boersen-Tag-Dienstag-26-Maerz-2024-article24830978.html) or try any from https://www.n-tv.de * On Android on Pixel 4a Android 14: Browser Menu -> Share -> Save as PDF * On Desktop on MacOS 14: Print -> Save as PDF I didn't immediately see any CSS that would prevent printing (save as PDF runs through the print engine) or anything obvious e.g., `@media print {display:none;}` or similar. Same behavior also occurs in Chrome when trying to print. I think we need to fully rule out that this website isn't blocking Printing / Save as PDF on purpose via CSS or similar since it is occurring cross-platform for this half of the bug. Other considerations: * Android 14 changed how some things in downloads worked and we now target 34. * Could be an issue accessing the download folder when pressing "Open" in Firefox.
Bug 1884249 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
More background on this issue, since it is a bit of a compound bug, there are really two layers to this flow and a bug can appear in either layer: 1. Make a PDF using the "Save as PDF" Engine 2. View that PDF in the viewer * Has some similarities to bug 1875087. Linking since it is a very adjacent bug, but I don't exactly think they are directly related and mostly to rule it out. I saw what I think are two errors as well: ### File Not Found Error I think this error is on the layer around giving the data to the PDF viewer. I reproduced file not found by selecting an article with +++ in the live ticker title on https://www.n-tv.de/. This tries to generate a download with `+++++` in the title, which is maybe an invalid character somewhere in the flow. Could also possibly be a filename character limit somewhere? Let me know if you saw "File not found" outside of a special character in the download name. ``` 03-26 10:24:29.989 24518 24544 E ContentInputStream: Cannot read the uri: content://org.mozilla.fenix.feature.downloads.fileprovider/Download/Download/Ukraine-Krieg%20im%20Liveticker%3A%20%2B%2B%2B%2015%3A15%20Putins%20%22Behauptungen%20machen%20%C3%BCberhaupt%20keinen%20Sinn%22%20%2B%2B%2B%20-%20n-tv.de.pdf 03-26 10:24:29.989 24518 24544 E ContentInputStream: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:151) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:814) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1773) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.geckoview.ContentInputStream.isReadable(ContentInputStream.java:139) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method) 03-26 10:24:29.989 24518 24544 E ContentInputStream: at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:659) ``` A bit bizarre is I get this error if I do the flow "Save as PDF" and press "Open". However, I do not get this error if I navigate to the file in the file explorer and open with "Firefox". So, it seems to be an access or passing data problem? When successfully opening from files the content is: `content://com.google.android.apps.nbu.files.provider/2/1000000464` ### Only showing logo error This is an error occurring in the engine generating the PDF. I was able to reproduce it both on Android and Desktop and Chrome this way: * This [article](https://www.n-tv.de/wirtschaft/der_boersen_tag/Der-Boersen-Tag-Dienstag-26-Maerz-2024-article24830978.html) or try any from https://www.n-tv.de (some have the issue, some do not) * On Android on Pixel 4a Android 14: Browser Menu -> Share -> Save as PDF * On Desktop on MacOS 14: Print -> Save as PDF I didn't immediately see any CSS that would prevent printing (save as PDF runs through the print engine) or anything obvious e.g., `@media print {display:none;}` or similar. Same behavior also occurs in Chrome when trying to print. I think we need to fully rule out that this website isn't blocking Printing / Save as PDF on purpose via CSS or similar since it is occurring cross-platform for this half of the bug. Other considerations: * Android 14 changed how some things in downloads worked and we now target 34. * Could be an issue accessing the download folder when pressing "Open" in Firefox.