mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.2k stars 2.92k forks source link

Sharing opened pdf will share empty pdf #14053

Open noahlokocz opened 1 year ago

noahlokocz commented 1 year ago

Steps to reproduce

Open a pdf without downloading it. Pressing the share button in the menu on the bottom right will open the IOS/iPad OS share menu. At the top, a pdf will be shown which is only a few KB in size, independent of the size of the opened pdf. Sharing the pdf will result in an empty pdf file.

Expected behavior

The opened pdf should be sharable as a whole.

Actual behavior

An empty pdf is shared.

Device & build information

┆Issue is synchronized with this Jira Task

Prurite commented 1 year ago

Same issue here. Only getting a 164B empty pdf when trying to use share to send to other apps / save to files. Super annoying as there seems to be no workaround to download pdf.

noahlokocz commented 1 year ago

Some websites allow you to download the pdf when doing a long press on the link to the file. After downloading it, you can export it. Works only when the download is available.

clemlesne commented 12 months ago

Same issue there. In addition to the reported behavior, any document (incl PDF) opened into a tab result in a URL named « blob: ». Rhodes pages cannot be shared nor saved at all.

It constraints me to open links in Safari each time I want to download a file to my phone. That’s painful and extremely frustrating.

I just mentioned multiple issues also related to download.

FunkyBeats99 commented 6 months ago

I think this issue appears when websites trigger the pdf viewer without using an URL that ends in « .pdf ». Very frustrating indeed, makes the browser almost unusable for me.