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