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

Unified Diff: src/plugin/PluginWbPassThrough.cpp

Issue 5171847423328256: Change the way XML HTTP Requests are blocked (Closed)
Patch Set: Created July 1, 2014, 12:19 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: src/plugin/PluginWbPassThrough.cpp
===================================================================
--- a/src/plugin/PluginWbPassThrough.cpp
+++ b/src/plugin/PluginWbPassThrough.cpp
@@ -270,13 +270,15 @@
m_spInternetProtocolSink->ReportResult(INET_E_REDIRECTING, 301, L"data:");
return INET_E_REDIRECT_FAILED;
}
+ if (((contentType == CFilter::contentTypeXmlHttpRequest)) && (isBlocked))
Felix Dahlke 2014/07/01 12:22:51 Redundant parentheses.
+ {
+ m_shouldBlock = true;
+ BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, pTargetProtocol);
+ m_spInternetProtocolSink->ReportResult(INET_E_REDIRECTING, 301, L"data:");
+ return INET_E_REDIRECT_FAILED;
+ }
if ((isBlocked))
{
-/* WCHAR tmp[256];
- wsprintf(tmp, L"URL: %s, domain: %s, mime: %s, type: %d", szUrl, boundDomain, mimeType, contentType);
- MessageBox(NULL, tmp, L"", MB_OK);
- contentType = GetContentType(mimeType, boundDomain, src);
-*/
m_shouldBlock = true;
BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, pTargetProtocol);
m_spInternetProtocolSink->ReportResult(S_FALSE, 0, L"");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld