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

Unified Diff: lib/filterComposer.js

Issue 29532767: Issue 5593 - Use messaging in popup for prefs, whitelisting, and stats (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Use messaging to communicate with filterComposer Created Sept. 1, 2017, 5:16 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 | « ext/popup.js ('k') | popup.html » ('j') | popup.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterComposer.js
===================================================================
--- a/lib/filterComposer.js
+++ b/lib/filterComposer.js
@@ -197,16 +197,21 @@
{
ext.pages.query({}, pages =>
{
for (let page of pages)
updateContextMenu(page);
});
});
+port.on("composer.isPageReady", (message, sender) =>
+{
+ return readyPages.has(new ext.Page({id: message.pageId}));
+});
+
port.on("composer.ready", (message, sender) =>
{
readyPages.set(sender.page, null);
updateContextMenu(sender.page);
});
port.on("composer.openDialog", (message, sender) =>
{
« no previous file with comments | « ext/popup.js ('k') | popup.html » ('j') | popup.html » ('J')

Powered by Google App Engine
This is Rietveld