Closed
Bug 890966
Opened 12 years ago
Closed 7 years ago
Finished download state never received in download manager when Save Page As Complete used
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mkaply, Unassigned)
Details
I'm adding a download listener like this:
Services.downloads.addListener({
onSecurityChange : function(prog, req, state, dl) {},
onProgressChange : function(prog, req, aprog, progMax, tProg, tProgMax, dl) {
Components.utils.reportError("onProgress Change");
},
onStateChange : function(prog, req, flags, status, dl) {
Components.utils.reportError("onStateChange for " + dl.targetFile.path + " flags=" + flags.toString(16) + " state=" + status);
},
onDownloadStateChange : function(state, dl) {
Components.utils.reportError("onDownloadStateChange for " + dl.targetFile.path + " state=" + state)
}
});
Then I go to example.com and do a save page as complete.
Looking at the console, I receive these notifications:
Error: onDownloadStateChange for /Users/mkaply/Downloads/Example Domain.html state=-1
Error: onStateChange for /Users/mkaply/Downloads/Example Domain.html flags=40001 state=0
Error: onDownloadStateChange for /Users/mkaply/Downloads/Example Domain.html state=5
Error: onStateChange for /Users/mkaply/Downloads/Example Domain.html flags=40010 state=0
I never receive on onDownloadStateChange for state=1 (the download finished).
Comment 1•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•