Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for downloads.DownloadQuery.
Developer library 5
downloads
.BooleanDelta - : Represents the difference between two booleans. - downloads.DownloadTime - : Represents the time a download took to complete. - downloads.DownloadQuery - : Defines a set of parameters that can be used to search the downloads manager for a specific set of downloads. ## Functions - downloads.download() - : Downloads a file, given its URL and other optional preferences. - downloads.search()
downloads.DownloadQuery
The `DownloadQuery` type of the downloads API defines a set of parameters that can be used to search the downloads manager for a specific set of downloads. This type is used for example in downloads.search() and downloads.erase(), as a query object to filter the set of DownloadItems to return or erase. ## Type Values of this type are objects. They contain the following properties: - `cookieStoreId` - : The coo
downloads.erase()
moveFile(), because it no longer exists according to the browser. ## Syntax ```js-nolint let erasing = browser.downloads.erase( query // DownloadQuery ) ``` ### Parameters - `query` - : A downloads.DownloadQuery object. ### Return value A [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). If the call was successful, the promise will be fulfilled with an array of integers
downloads.search()
t/Reference/Global_Objects/Promise). ## Syntax ```js-nolint let searching = browser.downloads.search(query); ``` ### Parameters - `query` - : A downloads.DownloadQuery object. ### Return value A [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). The promise is fulfilled with an `array` of downloads.DownloadItem objects that match the given criteria. ## Examples In general, you restrict the
Firefox 92 release notes for developers
([Firefox bug 1692984](https://bugzil.la/1692984)). ## Changes for add-on developers - Support for `cookieStoreId` is added to downloads.download, downloads.DownloadQuery, and downloads.DownloadItem. The addition to the types downloads.DownloadQuery and downloads.DownloadItem provides support in downloads.search and downloads.erase. Web extensions can now associate downloads with specific cookie stores, such as co