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

Unified Diff: messageResponder.js

Issue 29335261: Issue 154 - Adapted for change replacing isFrameWhitelisted with checkWhitelisted (Closed)
Patch Set: Created Feb. 2, 2016, 11:31 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -199,11 +199,11 @@
if (message.what == "cssproperties")
{
var filters = [];
- var isFrameWhitelisted = require("whitelisting").isFrameWhitelisted;
+ var checkWhitelisted = require("whitelisting").checkWhitelisted;
- if (!isFrameWhitelisted(sender.page, sender.frame,
- RegExpFilter.typeMap.DOCUMENT |
- RegExpFilter.typeMap.ELEMHIDE))
+ if (!checkWhitelisted(sender.page, sender.frame,
+ RegExpFilter.typeMap.DOCUMENT |
+ RegExpFilter.typeMap.ELEMHIDE))
{
filters = CSSRules.getRulesForDomain(sender.frame.url.hostname);
filters = filters.map(function(filter)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld