Closed
Bug 1151612
Opened 10 years ago
Closed 10 years ago
ExtendableEvent.waitUntil should log rejected Promises
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1150959
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 obsolete file)
Right now if installation/activation fail due to Promise rejection, there is no way for the webdev to see that in an obvious way.
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Comment 2•10 years ago
|
||
The result.Failed() case can be removed since we return early instead of just creating a rejected Promise.
This is because just creating a rejected promise due to an error in the event handler will lead to two logs in the console, one from the error itself, and one from the intentional promise rejected. I wanted to avoid that.
Attachment #8589951 -
Flags: review?(amarchesini)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → nsm.nikhil
| Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8589951 [details] [diff] [review]
Log rejected Promise error message to browser console
attached to wrong bug
Attachment #8589951 -
Attachment is obsolete: true
Attachment #8589951 -
Flags: review?(amarchesini)
You need to log in
before you can comment on or make changes to this bug.
Description
•