The open()
function of the downloads
API opens the downloaded file with its associated application. A downloads.onChanged
event will fire when the item is opened for the first time.
To use this function in your extension you must ask for the "downloads.open" manifest permission, as well as the "downloads" permission. Also, you can only call this function from inside the handler for a user action.
This is an asynchronous function that returns a Promise
.