Closed Bug 1862360 Opened 2 years ago Closed 2 years ago

Both records in 'about:downloads' page show as 'Completed' after deleting and redownloading a file

Categories

(Firefox :: Downloads Panel, defect)

Firefox 119
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: buglinking, Unassigned)

References

Details

Attachments

(1 file)

Attached video WrongDownloadRecord.mov

[Affected versions]:

  • Firefox 119.0 (64-bit)

[Affected platforms]:

  • Mac 14.0 (23A344)

[Steps to reproduce]:

  1. Download a file (ex: www.africau.edu/images/default/sample.pdf)
  2. Navigate to 'about:downloads' page
  3. Click "Show in Finder" button
  4. Right click on downloaded item
  5. Delete the downloaded item
  6. Download the same file again (ex: www.africau.edu/images/default/sample.pdf)
  7. Switch back to 'about:downloads' page
  8. Click the 'Reload current page' button

[Expected result]:

  • The status of the first downloaded item is 'File moved or missing'; The status of the second downloaded item is 'Completed'.

[Actual result]:

  • The status of the first downloaded item is 'Completed'; The status of the second downloaded item is 'Completed'.

Both download items point to the same physical file on disk, why should they differ?

The system is based on:

  1. history information. This has nothing about the download state, it's just bare history plus the local file target
  2. session information (from downloads.json), this is tracking in progress downloads, and as soon as a download is complete it gets removed.
  3. file status, this just depends on the local file status

It's clear that once 2 is removed (download complete) and file status is restored, the old download will look like a normally completed download.

While one could make a case that cronological happenings are not preserved, I don't see a use-case for that, nor an obvious user benefit.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
Duplicate of this bug: 1862175
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: