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: Another try at uploading the rebase diff Created May 9, 2018, 2:11 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/csp.js » ('j') | lib/csp.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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 break nodes; 291 break nodes;
292 } 292 }
293 } 293 }
294 } 294 }
295 } 295 }
296 296
297 if (selectors.length > 0 || filters.length > 0) 297 if (selectors.length > 0 || filters.length > 0)
298 { 298 {
299 browser.runtime.sendMessage({ 299 browser.runtime.sendMessage({
300 type: "devtools.traceElemHide", 300 type: "hitLogger.traceElemHide",
301 selectors, filters 301 selectors, filters
302 }); 302 });
303 } 303 }
304 }, 304 },
305 305
306 onTimeout() 306 onTimeout()
307 { 307 {
308 this.checkNodes(this.changedNodes, this.selectors); 308 this.checkNodes(this.changedNodes, this.selectors);
309 this.changedNodes = []; 309 this.changedNodes = [];
310 this.timeout = null; 310 this.timeout = null;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 }, 537 },
538 538
539 hideElements(elements, filters) 539 hideElements(elements, filters)
540 { 540 {
541 for (let element of elements) 541 for (let element of elements)
542 hideElement(element); 542 hideElement(element);
543 543
544 if (this.tracer) 544 if (this.tracer)
545 { 545 {
546 browser.runtime.sendMessage({ 546 browser.runtime.sendMessage({
547 type: "devtools.traceElemHide", 547 type: "hitLogger.traceElemHide",
548 selectors: [], 548 selectors: [],
549 filters 549 filters
550 }); 550 });
551 } 551 }
552 }, 552 },
553 553
554 apply() 554 apply()
555 { 555 {
556 browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response => 556 browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response =>
557 { 557 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 let element = event.target; 598 let element = event.target;
599 if (/^i?frame$/.test(element.localName)) 599 if (/^i?frame$/.test(element.localName))
600 checkCollapse(element); 600 checkCollapse(element);
601 }, true); 601 }, true);
602 } 602 }
603 603
604 window.checkCollapse = checkCollapse; 604 window.checkCollapse = checkCollapse;
605 window.elemhide = elemhide; 605 window.elemhide = elemhide;
606 window.typeMap = typeMap; 606 window.typeMap = typeMap;
607 window.getURLsFromElement = getURLsFromElement; 607 window.getURLsFromElement = getURLsFromElement;
OLDNEW
« no previous file with comments | « no previous file | lib/csp.js » ('j') | lib/csp.js » ('J')

Powered by Google App Engine
This is Rietveld