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

Side by Side Diff: lib/hitLogger.js

Issue 29991594: Issue 7243 - Update adblockpluscore dependency to hg:e26e122e0702 (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Remove third-party checks from QUnit tests Created Jan. 31, 2019, 12:56 a.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 | « lib/filterComposer.js ('k') | lib/popupBlocker.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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * @param {function} listener 55 * @param {function} listener
56 */ 56 */
57 removeListener: eventEmitter.off.bind(eventEmitter), 57 removeListener: eventEmitter.off.bind(eventEmitter),
58 58
59 /** 59 /**
60 * Checks whether a tab is being inspected by anything. 60 * Checks whether a tab is being inspected by anything.
61 * 61 *
62 * @param {number} tabId 62 * @param {number} tabId
63 * @return {boolean} 63 * @return {boolean}
64 */ 64 */
65 hasListener(tabId) 65 hasListener: eventEmitter.hasListeners.bind(eventEmitter)
66 {
67 let listeners = eventEmitter._listeners.get(tabId);
68 return listeners && listeners.length > 0;
69 }
70 }; 66 };
71 67
72 /** 68 /**
73 * Logs a request associated with a tab or multiple tabs. 69 * Logs a request associated with a tab or multiple tabs.
74 * 70 *
75 * @param {number[]} tabIds 71 * @param {number[]} tabIds
76 * The tabIds associated with the request 72 * The tabIds associated with the request
77 * @param {Object} request 73 * @param {Object} request
78 * The request to log 74 * The request to log
79 * @param {string} request.url 75 * @param {string} request.url
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 150 }
155 }; 151 };
156 152
157 port.on("hitLogger.traceElemHide", (message, sender) => 153 port.on("hitLogger.traceElemHide", (message, sender) =>
158 { 154 {
159 logHiddenElements( 155 logHiddenElements(
160 sender.page.id, message.selectors, message.filters, 156 sender.page.id, message.selectors, message.filters,
161 extractHostFromFrame(sender.frame) 157 extractHostFromFrame(sender.frame)
162 ); 158 );
163 }); 159 });
OLDNEW
« no previous file with comments | « lib/filterComposer.js ('k') | lib/popupBlocker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld