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

Unified Diff: background.js

Issue 8741005: Topic 11337 - More reliable approach to hide image/frame placeholders (Closed)
Patch Set: Created Oct. 31, 2012, 12:20 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 | « .hgsubstate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -532,18 +532,17 @@ chrome.extension.onRequest.addListener(f
var tabId = -1;
var frameId = -1;
if (sender.tab)
{
tabId = sender.tab.id;
frameId = getFrameId(tabId, request.documentUrl);
}
- var enabled = !isFrameWhitelisted(tabId, frameId, "DOCUMENT");
- if (!enabled)
+ if (isFrameWhitelisted(tabId, frameId, "DOCUMENT"))
{
sendResponse(false);
break;
}
var requestHost = extractHostFromURL(request.url);
var documentHost = extractHostFromURL(request.documentUrl);
var thirdParty = isThirdParty(requestHost, documentHost);
« no previous file with comments | « .hgsubstate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld