Index: lib/child/elemHide.js |
=================================================================== |
--- a/lib/child/elemHide.js |
+++ b/lib/child/elemHide.js |
@@ -79,17 +79,18 @@ let AboutHandler = |
aboutPrefix: "abp-elemhidehit", |
/** |
* Registers handler on startup. |
*/ |
init: function() |
{ |
let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); |
- registrar.registerFactory(this.classID, this.classDescription, |
+ let registerFactory = Utils.getPropertyWithoutCompatShims(registrar, "registerFactory"); |
+ registerFactory.call(registrar, this.classID, this.classDescription, |
"@mozilla.org/network/protocol/about;1?what=" + this.aboutPrefix, this); |
onShutdown.add(function() |
{ |
registrar.unregisterFactory(this.classID, this); |
}.bind(this)); |
}, |
// |