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

Unified Diff: lib/child/objectTabs.js

Issue 29329884: Issue 3224 - Unbreak filter assistant (Closed)
Patch Set: Created Nov. 9, 2015, 1:45 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/child/contentPolicy.js ('k') | lib/child/requestNotifier.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/objectTabs.js
===================================================================
--- a/lib/child/objectTabs.js
+++ b/lib/child/objectTabs.js
@@ -308,18 +308,22 @@ var objTabs =
rect.bottom += relTop;
}
return rect;
},
doBlock: function()
{
- // TODO: Store this.currentElement for the filter assistant
- sendAsyncMessage("AdblockPlus:BlockItem", this.objtabElement.nodeData);
+ let {storeNodes} = require("child/contentPolicy");
+ let nodesID = storeNodes([this.currentElement]);
+ sendAsyncMessage("AdblockPlus:BlockItem", {
+ request: this.objtabElement.nodeData,
+ nodesID
+ });
},
/**
* Called whenever a timer fires.
* @param {nsISupport} subject
* @param {string} topic
* @param {string} data
*/
« no previous file with comments | « lib/child/contentPolicy.js ('k') | lib/child/requestNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld