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

Unified Diff: lib/whitelisting.js

Issue 29569615: Noissue - Replace ext.pages.query with tabs.query (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 8, 2017, 11:37 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
« no previous file with comments | « lib/stats.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/whitelisting.js
===================================================================
--- a/lib/whitelisting.js
+++ b/lib/whitelisting.js
@@ -128,20 +128,20 @@
FilterNotifier.emit(
"page.WhitelistingStateRevalidate",
page, checkWhitelisted(page)
);
}
FilterNotifier.on("filter.behaviorChanged", () =>
{
- ext.pages.query({}, pages =>
+ chrome.tabs.query({}, tabs =>
{
- for (let page of pages)
- revalidateWhitelistingState(page);
+ for (let tab of tabs)
+ revalidateWhitelistingState(new ext.Page(tab));
});
});
ext.pages.onLoading.addListener(revalidateWhitelistingState);
let getKey =
/**
* Gets the public key, previously recorded for the given page
« no previous file with comments | « lib/stats.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld