Closed Bug 1838162 Opened 2 years ago Closed 2 years ago

Use ExtensionError instead of Error in WebExtension APIs

Categories

(Thunderbird :: Add-Ons: Extensions API, task)

Tracking

(thunderbird115? fixed)

RESOLVED FIXED
116 Branch
Tracking Status
thunderbird115 ? fixed

People

(Reporter: john, Assigned: john)

Details

Attachments

(1 file)

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: nobody → john
Status: NEW → ASSIGNED
Target Milestone: --- → 116 Branch

Pushed by elizabeth@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/934515a0e1aa
Use ExtensionError instead of Error in WebExtension APIs. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

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.

Attachment #9338813 - Flags: approval-comm-beta?

Comment on attachment 9338813 [details]
Bug 1838162 - Use ExtensionError instead of Error in WebExtension APIs. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9338813 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: