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

Unified Diff: src/plugin/PluginWbPassThrough.cpp

Issue 5171515343503360: Issue #41 - Bring method of determining IE version up to date (Closed)
Patch Set: Created July 29, 2014, 2:45 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
Index: src/plugin/PluginWbPassThrough.cpp
===================================================================
--- a/src/plugin/PluginWbPassThrough.cpp
+++ b/src/plugin/PluginWbPassThrough.cpp
@@ -9,7 +9,7 @@
#include "PluginSettings.h"
#include "PluginClass.h"
#include "PluginSystem.h"
-
+#include "../shared/IE_version.h"
#include "wtypes.h"
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
@@ -96,7 +96,7 @@
{
// No referer or mime type
// BINDSTRING_XDR_ORIGIN works only for IE v8+
- if (mimeType.IsEmpty() && domain.IsEmpty() && CPluginClient::GetInstance()->GetIEVersion() >= 8)
+ if (mimeType.IsEmpty() && domain.IsEmpty() && AdblockPlus::IE::InstalledMajorVersion() >= 8)
{
return CFilter::contentTypeXmlHttpRequest;
}
@@ -235,7 +235,7 @@
#endif
//Fixes the iframe back button issue
- if (client->GetIEVersion() > 6)
+ if (AdblockPlus::IE::InstalledMajorVersion() > 6)
{
if ((contentType == CFilter::contentTypeImage) && (isBlocked))
{

Powered by Google App Engine
This is Rietveld