Security/Reviews/B2G/DownloadManager: Difference between revisions

Jump to navigation Jump to search
Line 35: Line 35:


===Components===
===Components===
The main components involved in this fuctionality are:
The main components involved in this functionality are:
* Gaia System App: creates notifications when <code>DownloadEvent</code>s  are created (mozDownloadManager.ondownloadstart)
* Gaia System App: Creates notifications when <code>DownloadEvent</code>s  are created (mozDownloadManager.ondownloadstart). Progress is updated as download continues/finishes. Tapping the notification 'opens' the download, which is implemented via firing an appropriate web activity.
* Gaia Settings App: uses the mozDownloadManager API to display a list of downloads
* Gaia Settings App: uses the mozDownloadManager API to display a list of downloads. User can also launch or delete the download from this list.
* New mozDownloadManager API: provides a mechanism to manage downloads from content (as opposed to chrome)
* New mozDownloadManager API: provides a mechanism to manage downloads from content (as opposed to chrome)
* Existing Downloads API (Downloads.jsm) manages the initiation and database of downloads (see [https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Downloads.jsm Downloads.jsm] for details)
* Existing Downloads API (Downloads.jsm) manages the initiation and database of downloads (see [https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Downloads.jsm Downloads.jsm] for details)
canmove, Confirmed users
1,220

edits

Navigation menu