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

Side by Side Diff: include.preload.js

Issue 29705719: Issue 6402 - Split filter hit / request logging out into own API (Closed)
Patch Set: Ensure devtools module is included in the bundle Created Feb. 22, 2018, 4:30 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/cssInjection.js » ('j') | lib/devLogger.js » ('J')
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 break nodes; 243 break nodes;
244 } 244 }
245 } 245 }
246 } 246 }
247 } 247 }
248 248
249 if (selectors.length > 0 || filters.length > 0) 249 if (selectors.length > 0 || filters.length > 0)
250 { 250 {
251 browser.runtime.sendMessage({ 251 browser.runtime.sendMessage({
252 type: "devtools.traceElemHide", 252 type: "devlogger.traceElemHide",
253 selectors, filters 253 selectors, filters
254 }); 254 });
255 } 255 }
256 }, 256 },
257 257
258 onTimeout() 258 onTimeout()
259 { 259 {
260 this.checkNodes(this.changedNodes, this.selectors); 260 this.checkNodes(this.changedNodes, this.selectors);
261 this.changedNodes = []; 261 this.changedNodes = [];
262 this.timeout = null; 262 this.timeout = null;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 }, 481 },
482 482
483 hideElements(elements, filters) 483 hideElements(elements, filters)
484 { 484 {
485 for (let element of elements) 485 for (let element of elements)
486 hideElement(element); 486 hideElement(element);
487 487
488 if (this.tracer) 488 if (this.tracer)
489 { 489 {
490 browser.runtime.sendMessage({ 490 browser.runtime.sendMessage({
491 type: "devtools.traceElemHide", 491 type: "devlogger.traceElemHide",
492 selectors: [], 492 selectors: [],
493 filters 493 filters
494 }); 494 });
495 } 495 }
496 }, 496 },
497 497
498 apply() 498 apply()
499 { 499 {
500 browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response => 500 browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response =>
501 { 501 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 let element = event.target; 537 let element = event.target;
538 if (/^i?frame$/.test(element.localName)) 538 if (/^i?frame$/.test(element.localName))
539 checkCollapse(element); 539 checkCollapse(element);
540 }, true); 540 }, true);
541 } 541 }
542 542
543 window.checkCollapse = checkCollapse; 543 window.checkCollapse = checkCollapse;
544 window.elemhide = elemhide; 544 window.elemhide = elemhide;
545 window.typeMap = typeMap; 545 window.typeMap = typeMap;
546 window.getURLsFromElement = getURLsFromElement; 546 window.getURLsFromElement = getURLsFromElement;
OLDNEW
« no previous file with comments | « no previous file | lib/cssInjection.js » ('j') | lib/devLogger.js » ('J')

Powered by Google App Engine
This is Rietveld