Bug 553956: AddonProviders that contain syntax errors can break everything. r=robstrong

This commit is contained in:
Dave Townsend 2010-05-06 10:22:44 -07:00
parent 485f5a7dab
commit 5e9e6d9471

View File

@ -213,7 +213,12 @@ var AddonManagerInternal = {
// Ensure all default providers have had a chance to register themselves
PROVIDERS.forEach(function(url) {
Components.utils.import(url, {});
try {
Components.utils.import(url, {});
}
catch (e) {
ERROR("Exception loading provider \"" + url + "\": " + e);
}
});
let needsRestart = false;