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)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9.3a5
People
(Reporter: mossop, Assigned: mossop)
References
Details
(Whiteboard: [rewrite])
Attachments
(1 file)
889 bytes,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
Already fixed but want a bug for review purposes: http://hg.mozilla.org/projects/addonsmgr/rev/8c757fa5c3ab
Updated•15 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 1•15 years ago
|
||
Simple fix to ensure that importing a file with a syntax error doesn't harm the manager.
Attachment #435796 -
Flags: review?(robert.bugzilla)
![]() |
||
Updated•15 years ago
|
Attachment #435796 -
Flags: review?(robert.bugzilla) → review+
![]() |
||
Updated•15 years ago
|
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-review] → [rewrite][fixed-in-addonsmgr]
Assignee | ||
Updated•15 years ago
|
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-landing]
Assignee | ||
Comment 2•15 years ago
|
||
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
Comment 3•15 years ago
|
||
> 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.
Assignee | ||
Comment 4•15 years ago
|
||
The ERROR function does log to the error console and puts a message into extensions.log in the profile folder.
Comment 5•15 years ago
|
||
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.
Description
•