Closed Bug 398234 Opened 18 years ago Closed 18 years ago

Exception in nsIDownloadManager.cancelDownload when trying to cancel 'stuck' download

Categories

(Toolkit :: Downloads API, defect)

x86
macOS
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: stephend, Unassigned)

Details

(Keywords: qawanted)

Attachments

(1 file)

Build ID: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007100120 Minefield/3.0a9pre (but this has been happening for a while). Summary: Exception in nsIDownloadManager.cancelDownload when trying to cancel 'stuck' download Steps to Reproduce: 1. I *think* I reproduced a bunch of ghost entries by forcing Firefox to quit, to simulate crashes, while downloading ISO files. 2. Try to cancel these downloads upon restart. Expected Results: Downloads are cancelled, and then can be removed/cleared from the list. Actual Results: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDownloadManager.cancelDownload]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://mozapps/content/downloads/downloads.js :: cancelDownload :: line 193" data: no]
Ah, didn't realize this was from crashing the browser or something along those lines. Download manager is probably displaying a download in an inconsistent state -- cancel is likely failing because it's not an active download. Potentially fixed by bug 384810.
Yeah, so it's not an active download, so it will fail. This will be fixed by bug 384810 - you could argue that it's even a dupe.
Stephen - still go this? I'd hope you don't...
Keywords: qawanted
(In reply to comment #4) > Stephen - still go this? I'd hope you don't... No; closing it out. That download-resume/recover code works really well.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: