Closed Bug 1850664 Opened 10 months ago Closed 9 months ago

Firefox deletes downloaded files when the "Open when completed" option is selected

Categories

(Firefox :: File Handling, defect)

Firefox 118
defect

Tracking

()

RESOLVED DUPLICATE of bug 1790641
Tracking Status
firefox118 --- affected
firefox119 --- affected

People

(Reporter: styb.styb, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Steps to reproduce:

  1. Download Xmedia recode 64 bit: https://www.xmedia-recode.de/en/download.php
    and select the "Open when completed" option.
  2. After installation, close the executable file and the Firefox session.

Actual results:

The downloaded file is missing.

Expected results:

I would like to find the downloaded file in the download folder, as usually happens.

The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → File Handling

I've managed to randomly reproduce this issue in Firefox 118.0b2 and Nightly 119.0a1 after restarting my PC on Windows 10 x64:

  1. no previous files are downloaded
  2. download XMedia Recode (64 bit) Installer
  3. close the browser and restart the PC
  4. check the Downloads folder

In my opinion the .exe file was removed by the operating system being considered suspicious.
Setting this as NEW to have the developer's opinion about it.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Do you have any Antivirus installed that may examine the file on opening?

Flags: needinfo?(styb.styb)

It also happens with zip files, when I select the "Open when completed" option. I think it happens with all types of files.
The file download takes place regularly and the file is not deleted at the closing of Firefox when I do not use the download panel option.

Flags: needinfo?(styb.styb)

you didn't answer my question though.

Flags: needinfo?(styb.styb)

(In reply to Marco Bonardo [:mak] (away 11-21 Aug) from comment #5)

you didn't answer my question though.

The operating system is Windows 11 with the integrated Microsoft antivirus.

Flags: needinfo?(styb.styb)
Summary: Firefox deletes downloaded executable files when the "Open when completed" option is selected → Firefox deletes downloaded executable and zipped files when the "Open when completed" option is selected
Summary: Firefox deletes downloaded executable and zipped files when the "Open when completed" option is selected → Firefox deletes downloaded files when the "Open when completed" option is selected

I think file deleting is a serious problem, but I see no interest in solving this bug.

I'm sorry but if we cannot reproduce the problem, it's hard for us to debug whatever is happening.
Firefox is not even trying to remove files, that's why we first must ensure it's not being removed by other security software.

Could you please try with something that is unlikely to be handled by security software, like a test file from here: https://speed.hetzner.de
Does it happen also with that bin file?

Flags: needinfo?(styb.styb)

I'm sorry but in my system there is no association with bin files.

Flags: needinfo?(styb.styb)

Why does that matter? You can open it with any app, it will just fail, but that's not a problem for testing. You can try with something that is not an executable nor an archive. Those are the types that would be handled by a security software.

Non essendoci l'associazione, non appare l'opzione per aprire il file al termine del download.
Se hai il dubbio che sia dovuto all'antivirus, esegui il download normalmente e poi verifichi se l'antivirus si attiva per eliminare il file.
Non posso fare altre prove, non sono un tester. Se non interessa a voi, prova a pensare quanto può interessare a me.

My Italian is not good enough to follow comment 11 but it sounds like there is no interest from the reporter to check anything else.

From the reported issues, this sounds like bug 1790641, which should only happen in private browsing windows or perhaps permanent private browsing ("don't remember history"). If this isn't happening in private mode, then we cannot reproduce so it's unclear why the files would be deleted and we would need to ask for more information in order to fix anything. Something like what is outlined here: https://superuser.com/questions/150301/how-do-i-log-which-process-is-deleting-a-file-on-windows-xp would probably help work out what is deleting the file (and if it's Firefox, with what stack the file is being deleted, which would hopefully help us when investigating).

Status: NEW → RESOLVED
Closed: 9 months ago
Duplicate of bug: 1790641
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.