ReadonlycontentThe MIME type of the file.
ReadonlycurrentThe number of bytes downloaded so far.
ReadonlyerrorThe error object if the download failed.
ReadonlyidThe unique identifier of the download.
ReadonlypathThe local path where the file is being saved.
ReadonlysourceThe manifest URL of the application that initiated the download.
ReadonlystartThe time when the download started.
ReadonlystateThe current state of the download.
ReadonlystorageThe name of the storage area where the file is saved.
ReadonlystorageThe relative path within the storage area.
ReadonlytotalThe total size of the file in bytes.
ReadonlyurlThe URL of the file being downloaded.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
Represents a single file download.
Note
JSImplementation: "@mozilla.org/downloads/download;1"
Note
Pref: "dom.mozDownloads.enabled"
Note
Permissions: "downloads"