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

Side by Side Diff: lib/contentFiltering.js

Issue 29894575: Noissue - Rename elemhide.injectSelectors to content.injectSelectors (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Sept. 28, 2018, 12:36 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 | « include.preload.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-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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // If we can't remove user style sheets using tabs.removeCSS, we'll only keep 253 // If we can't remove user style sheets using tabs.removeCSS, we'll only keep
254 // adding them, which could cause problems with emulation filters as 254 // adding them, which could cause problems with emulation filters as
255 // described in issue #5864. Instead, we can just ask the content script to 255 // described in issue #5864. Instead, we can just ask the content script to
256 // add styles for emulation filters inline. 256 // add styles for emulation filters inline.
257 if (!styleSheetRemovalSupported) 257 if (!styleSheetRemovalSupported)
258 response.inlineEmulated = true; 258 response.inlineEmulated = true;
259 259
260 return response; 260 return response;
261 }); 261 });
262 262
263 port.on("elemhide.injectSelectors", (message, sender) => 263 port.on("content.injectSelectors", (message, sender) =>
264 { 264 {
265 updateFrameStyles(sender.page.id, sender.frame.id, message.selectors, 265 updateFrameStyles(sender.page.id, sender.frame.id, message.selectors,
266 message.groupName, message.appendOnly); 266 message.groupName, message.appendOnly);
267 }); 267 });
268 268
269 fetch(browser.extension.getURL("/snippets.js"), {cache: "no-cache"}) 269 fetch(browser.extension.getURL("/snippets.js"), {cache: "no-cache"})
270 .then(response => response.ok ? response.text() : "") 270 .then(response => response.ok ? response.text() : "")
271 .then(text => 271 .then(text =>
272 { 272 {
273 snippetsLibrarySource = text; 273 snippetsLibrarySource = text;
274 }); 274 });
OLDNEW
« no previous file with comments | « include.preload.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld