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

Unified Diff: lib/filterComposer.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/filterComposer.js
===================================================================
--- a/lib/filterComposer.js
+++ b/lib/filterComposer.js
@@ -16,17 +16,17 @@
*/
/** @module filterComposer */
"use strict";
const {defaultMatcher} = require("../adblockpluscore/lib/matcher");
const {RegExpFilter} = require("../adblockpluscore/lib/filterClasses");
-const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier");
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
const {Prefs} = require("./prefs");
const {extractHostFromFrame, isThirdParty} = require("./url");
const {getKey, checkWhitelisted} = require("./whitelisting");
const {port} = require("./messaging");
const info = require("info");
let readyPages = new ext.PageMap();
@@ -184,17 +184,17 @@
// user experience on mobile is quite different.
if (info.application != "fennec" &&
!filter && Prefs.shouldShowBlockElementMenu && readyPages.has(page))
{
page.contextMenus.create(contextMenuItem);
}
}
-FilterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu);
+filterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu);
Prefs.on("shouldShowBlockElementMenu", () =>
{
browser.tabs.query({}, tabs =>
{
for (let tab of tabs)
updateContextMenu(new ext.Page(tab));
});

Powered by Google App Engine
This is Rietveld