Closed Bug 1281547 Opened 8 years ago Closed 8 years ago

compatibility check should log the reason for failure

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: rhelmer, Assigned: rhelmer)

Details

Attachments

(1 file)

The isUsableAddon function in XPIProvider.jsm can fail for several reasons, but there is no logging so it's basically impossible to tell quickly what the problem is for an add-on developer.

This would have helped us get to the bottom of bug 1273547 faster, but this is not the first time I have run across this.
Status: NEW → ASSIGNED
Comment on attachment 8764341 [details]
Bug 1281547 - add-on compatibility check should log underlying reason

https://reviewboard.mozilla.org/r/60292/#review57338

Looks good with one minor suggestion: include the addon id in the log messages.  If somebody doesn't happen to see the log message at the moment an addon is being installed or enabled, it might be unclear where the message came from and having the id would help.
Attachment #8764341 - Flags: review?(aswan) → review+
Comment on attachment 8764341 [details]
Bug 1281547 - add-on compatibility check should log underlying reason

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60292/diff/1-2/
Pushed by rhelmer@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8f046ea5bb4d
add-on compatibility check should log underlying reason r=aswan
https://hg.mozilla.org/mozilla-central/rev/8f046ea5bb4d
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: