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

Unified Diff: lib/popupBlocker.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Reduce inline eslint-disable comments Created Feb. 8, 2017, 7:27 a.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
« no previous file with comments | « lib/notificationHelper.js ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/popupBlocker.js
diff --git a/lib/popupBlocker.js b/lib/popupBlocker.js
index 3c171f0aff419a2cdf35c1632e49805d6c2c902a..9b12787a8e5cb3585e9ba90e85e9f1e232536338 100644
--- a/lib/popupBlocker.js
+++ b/lib/popupBlocker.js
@@ -20,7 +20,7 @@
"use strict";
const {defaultMatcher} = require("matcher");
-const {BlockingFilter} = require("filterClasses");
+const {BlockingFilter, RegExpFilter} = require("filterClasses");
const {stringifyURL, isThirdParty, extractHostFromFrame} = require("url");
const {checkWhitelisted} = require("whitelisting");
const {logRequest} = require("devtools");
@@ -95,7 +95,7 @@ chrome.webNavigation.onCreatedNavigationTarget.addListener(details =>
chrome.webRequest.onBeforeRequest.addListener(
onBeforeRequest,
{
- urls: ["<all_urls>"],
+ urls: ["<all_urls>"],
types: ["main_frame"]
}
);
@@ -104,7 +104,7 @@ chrome.webNavigation.onCreatedNavigationTarget.addListener(details =>
chrome.tabs.onRemoved.addListener(forgetPopup);
}
- let tabId = details.tabId;
+ let {tabId} = details;
let popup = loadingPopups[tabId] = {
url: details.url,
sourcePage: new ext.Page({id: details.sourceTabId}),
« no previous file with comments | « lib/notificationHelper.js ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld