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

Unified Diff: webrequest.js

Issue 5728050318671872: Issue 926 - Filters should not be applied on local pages (Closed)
Patch Set: Created July 15, 2014, 12:04 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrequest.js
===================================================================
--- a/webrequest.js
+++ b/webrequest.js
@@ -49,7 +49,7 @@
function onBeforeRequest(url, type, page, frame)
{
- if (isFrameWhitelisted(page, frame))
+ if (!/^https?:/.test(url) || isFrameWhitelisted(page, frame))
Sebastian Noack 2014/07/15 22:47:44 Any reasons that you don't just change the url pat
Wladimir Palant 2014/07/16 07:12:29 Changing this in chrome/ext/background.js seems to
return true;
var docDomain = extractHostFromFrame(frame);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld