Open Bug 1213445 Opened 9 years ago Updated 7 months ago

[tracking] Implement chrome.downloads

Categories

(WebExtensions :: General, enhancement, P5)

enhancement

Tracking

(Not tracked)

People

(Reporter: andy+bugzilla, Unassigned)

References

(Depends on 4 open bugs, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [downloads]triaged)

The methods on the API are: https://developer.chrome.com/extensions/downloads Currently implemented: - Won't be implemented because they are deprecated: - To be implemented: Types FilenameConflictAction InterruptReason DangerType State DownloadItem StringDelta DoubleDelta BooleanDelta Methods download − chrome.downloads.download(object options, function callback) search − chrome.downloads.search(object query, function callback) pause − chrome.downloads.pause(integer downloadId, function callback) resume − chrome.downloads.resume(integer downloadId, function callback) cancel − chrome.downloads.cancel(integer downloadId, function callback) getFileIcon − chrome.downloads.getFileIcon(integer downloadId, object options, function callback) open − chrome.downloads.open(integer downloadId) show − chrome.downloads.show(integer downloadId) showDefaultFolder − chrome.downloads.showDefaultFolder() erase − chrome.downloads.erase(object query, function callback) removeFile − chrome.downloads.removeFile(integer downloadId, function callback) acceptDanger − chrome.downloads.acceptDanger(integer downloadId, function callback) drag − chrome.downloads.drag(integer downloadId) setShelfEnabled − chrome.downloads.setShelfEnabled(boolean enabled) Events onCreated onErased onChanged onDeterminingFilename
Whiteboard: [download] → [downloads]
Flags: blocking-webextensions-
Hi, I started implementing this as a pet project, see [1]. [1] https://github.com/mozilla/gecko-dev/compare/master...julienw:downloads-extensions I barely have the start -- but it seems to work so far ;)
Assignee: nobody → aswan
Summary: Implement chrome.downloads → [tracking] Implement chrome.downloads
Depends on: 1245597
Depends on: 1245599
Depends on: 1245600
Depends on: 1245602
Depends on: 1245603
Depends on: 1245606
Depends on: 1245636
Depends on: 1245639
Depends on: 1245640
Depends on: 1245641
Depends on: 1245644
Depends on: 1245645
Depends on: 1245651
Depends on: 1245648
Depends on: 1245652
Depends on: 1245678
Whiteboard: [downloads] → [downloads]triaged
Depends on: 1247791
Depends on: 1247793
Depends on: 1247794
Depends on: 1251766
Added [dev-doc-needed] so wbamberg can create the MDN pages from the json.
Keywords: dev-doc-needed
Assignee: aswan → nobody
The key APIs have been done, dropping priority for the remaining issues.
Component: WebExtensions: Untriaged → WebExtensions: General
Flags: blocking-webextensions-
Keywords: dev-doc-needed
Priority: -- → P5
Does the implementation period for onDeterminingFilename?
Depends on: 1342563
To avoid confusion - my question was associated with the capture of links to FTP the file and download it myself. Bugs : https://bugzilla.mozilla.org/show_bug.cgi?id=1340547 https://bugzilla.mozilla.org/show_bug.cgi?id=1245652
Guys, any news about when downloads.drag will be implemented?
No longer depends on: 1342563
Depends on: 1305663
Product: Toolkit → WebExtensions
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.