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""); |