Open Bug 698705 Opened 13 years ago Updated 2 years ago

pauseDownload method in nsIDownloadManager interface return unexpected error

Categories

(Toolkit :: Downloads API, defect)

7 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: manuel.bitto, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238

Steps to reproduce:

Developing a firefox extensio toolbar, after implemented a nsIDownloadProgressListener interface, when onStateChenge method is called i try to pause download with method:

pauseDownload(aDownload.id);


Actual results:

And an exception is rasied:

"Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDownloadManager.pauseDownload]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://mytoolbar/content/downloadListener.js :: <TOP_LEVEL> :: line 51" data: no] { name="NS_ERROR_UNEXPECTED", message="Component returned fail...


Expected results:

The related download in the download window should be paused.
Component: General → Download Manager
Product: Core → Toolkit
QA Contact: general → download.manager
Pausing downloads in general in the Firefox Download Manager works though?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.