mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 553956: AddonProviders that contain syntax errors can break everything. r=robstrong
This commit is contained in:
parent
485f5a7dab
commit
5e9e6d9471
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user