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

Side by Side Diff: lib/contentFiltering.js

Issue 29894572: Issue 6997 - Remove unused selectorGroupSize constant (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Sept. 28, 2018, 12:32 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 | 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-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 18 matching lines...) Expand all
29 const {port} = require("./messaging"); 29 const {port} = require("./messaging");
30 const {HitLogger, logRequest} = require("./hitLogger"); 30 const {HitLogger, logRequest} = require("./hitLogger");
31 const info = require("info"); 31 const info = require("info");
32 32
33 // Chromium's support for tabs.removeCSS is still a work in progress and the 33 // Chromium's support for tabs.removeCSS is still a work in progress and the
34 // API is likely to be different from Firefox's; for now we just don't use it 34 // API is likely to be different from Firefox's; for now we just don't use it
35 // at all, even if it's available. 35 // at all, even if it's available.
36 // See https://crbug.com/608854 36 // See https://crbug.com/608854
37 const styleSheetRemovalSupported = info.platform == "gecko"; 37 const styleSheetRemovalSupported = info.platform == "gecko";
38 38
39 const selectorGroupSize = 1024;
40
41 let userStyleSheetsSupported = true; 39 let userStyleSheetsSupported = true;
42 40
43 let snippetsLibrarySource = ""; 41 let snippetsLibrarySource = "";
44 let executableCode = new Map(); 42 let executableCode = new Map();
45 43
46 function addStyleSheet(tabId, frameId, styleSheet) 44 function addStyleSheet(tabId, frameId, styleSheet)
47 { 45 {
48 try 46 try
49 { 47 {
50 let promise = browser.tabs.insertCSS(tabId, { 48 let promise = browser.tabs.insertCSS(tabId, {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 updateFrameStyles(sender.page.id, sender.frame.id, message.selectors, 263 updateFrameStyles(sender.page.id, sender.frame.id, message.selectors,
266 message.groupName, message.appendOnly); 264 message.groupName, message.appendOnly);
267 }); 265 });
268 266
269 fetch(browser.extension.getURL("/snippets.js"), {cache: "no-cache"}) 267 fetch(browser.extension.getURL("/snippets.js"), {cache: "no-cache"})
270 .then(response => response.ok ? response.text() : "") 268 .then(response => response.ok ? response.text() : "")
271 .then(text => 269 .then(text =>
272 { 270 {
273 snippetsLibrarySource = text; 271 snippetsLibrarySource = text;
274 }); 272 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld