pauseDownload method in nsIDownloadManager interface return unexpected error

UNCONFIRMED
Unassigned

Status

()

Toolkit
Downloads API
UNCONFIRMED
7 years ago
6 years ago

People

(Reporter: Manuel, Unassigned)

Tracking

7 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
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?
You need to log in before you can comment on or make changes to this bug.