Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/child/contentPolicy.js

Issue 29333334: Issue 3494 - Update buildtools dependency for adblockplus to revision 4d73b9c76e34 (disable E10S co… (Closed)
Patch Set: Created Jan. 8, 2016, 4:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dependencies ('k') | lib/child/contextMenu.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/contentPolicy.js
===================================================================
--- a/lib/child/contentPolicy.js
+++ b/lib/child/contentPolicy.js
@@ -241,27 +241,24 @@ var PolicyImplementation =
for (let name in iface)
if (name.indexOf("TYPE_") == 0 && name != "TYPE_DATAREQUEST")
types.set(iface[name], name.substr(5));
let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
registrar.registerFactory(this.classID, this.classDescription, this.contractID, this);
let catMan = Utils.categoryManager;
- let addCategoryEntry = Utils.getPropertyWithoutCompatShims(catMan, "addCategoryEntry");
for (let category of this.xpcom_categories)
- addCategoryEntry.call(catMan, category, this.contractID, this.contractID, false, true);
+ catMan.addCategoryEntry(category, this.contractID, this.contractID, false, true);
- let addObserver = Utils.getPropertyWithoutCompatShims(Services.obs, "addObserver");
- addObserver.call(Services.obs, this, "content-document-global-created", true);
+ Services.obs.addObserver(this, "content-document-global-created", true);
onShutdown.add(() =>
{
- let removeObserver = Utils.getPropertyWithoutCompatShims(Services.obs, "removeObserver");
- removeObserver.call(Services.obs, this, "content-document-global-created");
+ Services.obs.removeObserver(this, "content-document-global-created");
for (let category of this.xpcom_categories)
catMan.deleteCategoryEntry(category, this.contractID, false);
registrar.unregisterFactory(this.classID, this);
});
},
« no previous file with comments | « dependencies ('k') | lib/child/contextMenu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld