Use ExtensionError instead of Error in WebExtension APIs
Categories
(Thunderbird :: Add-Ons: Extensions API, task)
Tracking
(thunderbird115? fixed)
People
(Reporter: john, Assigned: john)
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
Instead of the correct error message, throw new Error(...) only adds an "unexpected error" message to the console:
Uncaught (in promise) Error: An unexpected error occurred
We should use ExtensionError.
| Assignee | ||
Comment 1•2 years ago
|
||
Depends on D180678
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by elizabeth@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/934515a0e1aa
Use ExtensionError instead of Error in WebExtension APIs. r=mkmelin
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Comment on attachment 9338813 [details]
Bug 1838162 - Use ExtensionError instead of Error in WebExtension APIs. r=#thunderbird-reviewers
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
This is work which was not completed in time for 115. This is a cosmetic change (the developer gets a proper error message instead of "unexpected error". Its uplift is mainly needed to not divert 115 and daily too much, to still be able to uplift later changes without merge conflicts.
Testing completed (on c-c, etc.):
Just landed on Daily.
Risk to taking this patch (and alternatives if risky):
There should be none.
Comment 4•2 years ago
|
||
Comment on attachment 9338813 [details]
Bug 1838162 - Use ExtensionError instead of Error in WebExtension APIs. r=#thunderbird-reviewers
[Triage Comment]
Approved for beta
Comment 5•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/d999135c8083
Description
•