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

Unified Diff: lib/contentFiltering.js

Issue 29877564: Issue 6933 - Update adblockpluscore dependency to hg:dcda4859fcbd (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase on next and update adblockplusui dependency Created Sept. 11, 2018, 1:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/contentFiltering.js
===================================================================
--- a/lib/contentFiltering.js
+++ b/lib/contentFiltering.js
@@ -17,17 +17,17 @@
/** @module contentFiltering */
"use strict";
const {RegExpFilter} = require("../adblockpluscore/lib/filterClasses");
const {ElemHide} = require("../adblockpluscore/lib/elemHide");
const {ElemHideEmulation} = require("../adblockpluscore/lib/elemHideEmulation");
-const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier");
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
const {Snippets, compileScript} = require("../adblockpluscore/lib/snippets");
const {checkWhitelisted} = require("./whitelisting");
const {extractHostFromFrame} = require("./url");
const {port} = require("./messaging");
const {HitLogger, logRequest} = require("./hitLogger");
const info = require("info");
// Chromium's support for tabs.removeCSS is still a work in progress and the
@@ -235,17 +235,17 @@
if (snippets)
{
for (let filter of Snippets.getFiltersForDomain(docDomain))
{
executeScript(filter.script, sender.page.id, sender.frame.id).then(() =>
{
let tabIds = [sender.page.id];
if (filter)
- FilterNotifier.emit("filter.hitCount", filter, 0, 0, tabIds);
+ filterNotifier.emit("filter.hitCount", filter, 0, 0, tabIds);
logRequest(tabIds, {
url: sender.frame.url.href,
type: "SNIPPET",
docDomain
}, filter);
});
}

Powered by Google App Engine
This is Rietveld