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

Side by Side Diff: lib/child/elemHide.js

Issue 29329263: Issue 3108 - Less hacky approach to disabling E10S compatibility shims (Closed)
Patch Set: Created Oct. 16, 2015, 9:03 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/main.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 classID: Components.ID("{55fb7be0-1dd2-11b2-98e6-9e97caf8ba67}"), 77 classID: Components.ID("{55fb7be0-1dd2-11b2-98e6-9e97caf8ba67}"),
78 classDescription: "Element hiding hit registration protocol handler", 78 classDescription: "Element hiding hit registration protocol handler",
79 aboutPrefix: "abp-elemhidehit", 79 aboutPrefix: "abp-elemhidehit",
80 80
81 /** 81 /**
82 * Registers handler on startup. 82 * Registers handler on startup.
83 */ 83 */
84 init: function() 84 init: function()
85 { 85 {
86 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 86 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
87 registrar.registerFactory(this.classID, this.classDescription, 87 let registerFactory = Utils.getPropertyWithoutCompatShims(registrar, "regist erFactory");
88 registerFactory.call(registrar, this.classID, this.classDescription,
88 "@mozilla.org/network/protocol/about;1?what=" + this.aboutPrefix, this); 89 "@mozilla.org/network/protocol/about;1?what=" + this.aboutPrefix, this);
89 onShutdown.add(function() 90 onShutdown.add(function()
90 { 91 {
91 registrar.unregisterFactory(this.classID, this); 92 registrar.unregisterFactory(this.classID, this);
92 }.bind(this)); 93 }.bind(this));
93 }, 94 },
94 95
95 // 96 //
96 // Factory implementation 97 // Factory implementation
97 // 98 //
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 { 206 {
206 throw Cr.NS_ERROR_NOT_IMPLEMENTED; 207 throw Cr.NS_ERROR_NOT_IMPLEMENTED;
207 }, 208 },
208 resume: function() 209 resume: function()
209 { 210 {
210 throw Cr.NS_ERROR_NOT_IMPLEMENTED; 211 throw Cr.NS_ERROR_NOT_IMPLEMENTED;
211 }, 212 },
212 213
213 QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]) 214 QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest])
214 }; 215 };
OLDNEW
« no previous file with comments | « no previous file | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld