Closed
Bug 1821889
Opened 2 years ago
Closed 2 years ago
Suppress Error: Download canceled by the user
Categories
(WebExtensions :: General, enhancement)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: erosman, Unassigned)
Details
Attachments
(1 file)
|
50.89 KB,
image/png
|
Details |
If the Cancel is clicked by the user in the downloads.download API with saveAs: true popup dialogue, an error is logged to the console.
Uncaught (in promise) Error: Download canceled by the user
The message does not appear to be beneficial to the developers. Furthermore, user action can hardly be classed as an error.
Suggestion
- Suppress error completely
- Log as
console.info
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Downloads Panel' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Downloads Panel
Product: WebExtensions → Firefox
Comment 2•2 years ago
|
||
The expectation of developers is for the downloads.download API to download the given URL. If the user cancels, the developer may be interested in being notified about it.
If you are not interested in the error, catch the rejection and ignore it as desired.
Status: NEW → RESOLVED
Closed: 2 years ago
Component: Downloads Panel → General
Product: Firefox → WebExtensions
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•