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: Created Oct. 29, 2015, 12:23 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/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,

Powered by Google App Engine
This is Rietveld