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 323f5e8b90
commit 3a9b45decd

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;