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

Unified Diff: lib/elemHide.js

Issue 29329450: Issue 3208 - Don`t use numerical content types outside nsIContentPolicy.shouldLoad (Closed)
Patch Set: Removed unrelated change Created Nov. 4, 2015, 9: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/contentPolicy.js ('k') | lib/objectTabs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/elemHide.js
===================================================================
--- a/lib/elemHide.js
+++ b/lib/elemHide.js
@@ -234,17 +234,17 @@ let ElemHide = exports.ElemHide =
if (attr == "data-adblockkey")
return sitekey;
else
return null;
};
}
let {Policy} = require("contentPolicy");
- return !Policy.processNode(fakeFrame, fakeFrame.document, Policy.type.ELEMHIDE, filter);
+ return !Policy.processNode(fakeFrame, fakeFrame.document, "ELEMHIDE", filter);
},
/**
* Will be set to true if apply() is running (reentrance protection).
* @type Boolean
*/
_applying: false,
« no previous file with comments | « lib/contentPolicy.js ('k') | lib/objectTabs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld