Closed Bug 1682668 Opened 10 months ago Closed 10 months ago

Improve error messages when delegate is not present

Categories

(GeckoView :: Extensions, defect, P3)

Unspecified
All

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: agi, Assigned: agi)

Details

Attachments

(2 files)

There are cases where if the relevant delegate is not present, an extension API will fail. Currently some failures don't have error messages, e.g. tabs.update just fails with "null".

We should send meaningful error messages to help embedders.

E.g. https://github.com/mozilla-mobile/android-components/issues/9210

Assignee: nobody → agi
Status: NEW → ASSIGNED
Severity: -- → S4
Priority: -- → P3

This method allows callers to synchronously map a GeckoResult value to another
value.

Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6662de5ba407
Add GeckoResult.map. r=owlish,aklotz
https://hg.mozilla.org/integration/autoland/rev/0db606883e8d
Improve error messages when TabDelegate is not present. r=owlish
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.