Closed Bug 553956 Opened 15 years ago Closed 15 years ago

AddonProviders that contain syntax errors can break everything

Categories

(Toolkit :: Add-ons Manager, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.3a5

People

(Reporter: mossop, Assigned: mossop)

References

Details

(Whiteboard: [rewrite])

Attachments

(1 file)

Already fixed but want a bug for review purposes: http://hg.mozilla.org/projects/addonsmgr/rev/8c757fa5c3ab
Attached patch patch rev 1Splinter Review
Simple fix to ensure that importing a file with a syntax error doesn't harm the manager.
Attachment #435796 - Flags: review?(robert.bugzilla)
Attachment #435796 - Flags: review?(robert.bugzilla) → review+
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-review] → [rewrite][fixed-in-addonsmgr]
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-landing]
Landed: http://hg.mozilla.org/mozilla-central/rev/09553c7137f9 No easy way to automatically or manually test this but it is simple enough.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-landing] → [rewrite]
Target Milestone: --- → mozilla1.9.3a5
> ERROR("Exception loading provider \"" + url + "\": " + e); Dave, shouldn't we better throw an exception in the Error Console under such a situation? Only dumping a debug message if we fail to load a provider doesn't seem to be enough IMO.
The ERROR function does log to the error console and puts a message into extensions.log in the profile folder.
Verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100515 Minefield/3.7a5pre GTB7.1 ID:20100515040001 Thanks for the explanation Dave. I have tested it with creating a syntax error in XPIProvider.jsm and the result is written as an error to the Error Console and into the extension.log.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: