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: Rebased Created Nov. 12, 2015, 3:10 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/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
*/

Powered by Google App Engine
This is Rietveld