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

Side by Side Diff: safari/ext/common.js

Issue 29503587: Issue 5464 - Upgrade to new asynchronous version of abp2blocklist (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Patch RegExpFilter.typeMap with WEBRTC Created Aug. 14, 2017, 5:21 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
« safari/contentBlocking.js ('K') | « safari/contentBlocking.js ('k') | no next file » | 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-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 (function() 18 (function()
19 { 19 {
20 window.addEventListener("load", () =>
Manish Jethani 2017/08/14 17:23:49 We have to do this in the load handler because the
Sebastian Noack 2017/08/15 15:25:01 This seems to be the wrong place to do this. If yo
Manish Jethani 2017/08/16 10:23:01 This seems to do the trick. Done.
21 {
22 // Patch RegExpFilter.typeMap with WEBRTC, because abp2blocklist needs it
23 // and our version of core doesn't support it yet. See issue #5464.
24 require("filterClasses").RegExpFilter.typeMap.WEBRTC = 256;
25 });
26
20 /* Message passing */ 27 /* Message passing */
21 28
22 var MessageProxy = ext._MessageProxy = function(messageDispatcher) 29 var MessageProxy = ext._MessageProxy = function(messageDispatcher)
23 { 30 {
24 this._messageDispatcher = messageDispatcher; 31 this._messageDispatcher = messageDispatcher;
25 this._responseCallbacks = Object.create(null); 32 this._responseCallbacks = Object.create(null);
26 this._responseCallbackCounter = 0; 33 this._responseCallbackCounter = 0;
27 }; 34 };
28 MessageProxy.prototype = { 35 MessageProxy.prototype = {
29 _sendResponse: function(request, message) 36 _sendResponse: function(request, message)
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 }; 225 };
219 226
220 227
221 /* Utils */ 228 /* Utils */
222 229
223 ext.getURL = function(path) 230 ext.getURL = function(path)
224 { 231 {
225 return safari.extension.baseURI + path; 232 return safari.extension.baseURI + path;
226 }; 233 };
227 })(); 234 })();
OLDNEW
« safari/contentBlocking.js ('K') | « safari/contentBlocking.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld