I think more generally, *actual* zero-byte downloads are broken entirely right now, too - they don't generate any file at all on your filesystem, likely due to this same bug. STR: 1. Click this link (or paste it into your URLbar and submit): https://dholbert.org/zero.zip (this is just an 0-byte empty file) 2. Click through any UI to confirm that you'd like to download the file. 3. Open your Android file-explorer program (e.g. "Files" on pixel phones) to check for the file in your downloads folder. ACTUAL RESULTS: No such file. EXPECTED RESULTS: File should be there. Firefox Nightly gives ACTUAL RESULTS. Chrome gives EXPECTED RESULTS. (It shows "download error" in the system tray, presumably because it assumes that the 0-byte file size means that something went amiss, but in fact it does successfully "download" the 0-byte file and generate a file on my filesystem.) I think this^ bug and the PDF bug are versions of the same issue -- files that download ~instantly don't actually get created, possibly because they never get beyond the very start of `performDownload` as hypothesized above.
Bug 1962075 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I think more generally, *actual* zero-byte downloads are broken entirely right now, too - they don't generate any file at all on your filesystem, likely due to this same bug. STR: 1. Click this link (or paste it into your URLbar and submit): https://dholbert.org/zero.zip (this is just an 0-byte empty file) 2. Click through any UI to confirm that you'd like to download the file. 3. Open your Android file-explorer program (e.g. "Files" on pixel phones) to check for the file in your downloads folder. ACTUAL RESULTS: No such file. EXPECTED RESULTS: File should be there. (with a size of 0 bytes) Firefox Nightly gives ACTUAL RESULTS. Chrome gives EXPECTED RESULTS. (It shows "download error" in the system tray, presumably because it assumes that the 0-byte file size means that something went amiss, but in fact it does successfully "download" the 0-byte file and generate a file on my filesystem.) I think this^ bug and the PDF bug are versions of the same issue -- files that download ~instantly don't actually get created, possibly because they never get beyond the very start of `performDownload` as hypothesized above.