Index: lib/contentPolicy.js |
=================================================================== |
--- a/lib/contentPolicy.js |
+++ b/lib/contentPolicy.js |
@@ -344,12 +344,17 @@ |
{ |
registrar.registerFactory(this.classID, this.classDescription, this.contractID, this); |
} |
- catch (e if e.result == Cr.NS_ERROR_FACTORY_EXISTS) |
+ catch (e) |
{ |
// See bug 924340 - it might be too early to init now, the old version |
// we are replacing didn't finish removing itself yet. |
- Utils.runAsync(this.init.bind(this)); |
- return; |
+ if (e.result == Cr.NS_ERROR_FACTORY_EXISTS) |
+ { |
+ Utils.runAsync(this.init.bind(this)); |
+ return; |
+ } |
+ |
+ Cu.reportError(e); |
} |
let catMan = Utils.categoryManager; |