Closed Bug 289541 Opened 20 years ago Closed 17 years ago

third state for downloads: invisible but not removed

Categories

(Toolkit :: Downloads API, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: myk, Assigned: Mardak)

References

Details

Attachments

(2 files, 2 obsolete files)

Currently, downloads can only be either visible or removed in the download
manager.  When visible, downloads often clutter up the interface with
information the user isn't interested in.  When removed, downloads no longer
appear in the UI and cannot be retrieved by users wanting to see what they
downloaded in the past.

It would be useful to have a third state in which downloads are invisible but
not removed.  Then the download manager (or extensions that provide alternative
interfaces to downloads) could automatically hide downloads based on some
criteria (f.e. age, or whether the user has accessed the downloaded file) while
still keeping a historical record of what was downloaded.
QA Contact: ali → download.manager
Assignee: bugs → nobody
We now only show the last 7 days of downloads (and the number of days is configurable).  Is this sufficient?
We'll need this extra flag because cleanup will only remove downloads from view as well as each download can be individually removed from the list. (All downloads remain in downloads.sqlite unless cleared by private browsing, etc)
Blocks: 397655
Version: unspecified → Trunk
Attached patch v1 (obsolete) — Splinter Review
This adds the DB backend changes. Yay mercurial git diffs -- tracking history across copies and being able to diff them... Too bad I commit by cvs, so the history is lost anyway. :p
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #285601 - Flags: review?(comrade693+bmo)
Attached patch v1.1 (obsolete) — Splinter Review
Whoops.. I put autoResume back to 0 for the test db. Strange stuff happens when you set autoResume to 1 and init the download manager.. I suppose at least now we know autoResumed downloads actually do get autoResumed. ;)
Attachment #285601 - Attachment is obsolete: true
Attachment #285602 - Flags: review?(comrade693+bmo)
Attachment #285601 - Flags: review?(comrade693+bmo)
Attached file v8.sqlite
Attached patch v1.1, reallySplinter Review
:( hg qrefresh sometimes takes a long time to find all the changes in the mozilla tree.
Attachment #285602 - Attachment is obsolete: true
Attachment #285605 - Flags: review?(comrade693+bmo)
Attachment #285602 - Flags: review?(comrade693+bmo)
Blocks: 400545
Comment on attachment 285605 [details] [diff] [review]
v1.1, really

Two things:
1) I don't think this is necessary.  We can store the relevant data with places that we can always resume it that way.
2) you don't have the full test file in the patch

I'm inclined to WONTFIX this bug currently since we plan on getting places integration landed.
Attachment #285605 - Flags: review?(comrade693+bmo) → review-
The full test file is somewhat there ;)

copy from toolkit/components/downloads/test/schema_migration/test_migration_to_8.js
copy to toolkit/components/downloads/test/schema_migration/test_migration_to_9.js

Going back to the original report, should extension writers then make use of places db instead of downloads db?
(In reply to comment #8)
> Going back to the original report, should extension writers then make use of
> places db instead of downloads db?
Yes, I do believe so.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: