Index: Shared/PluginTabBase.cpp |
=================================================================== |
--- a/Shared/PluginTabBase.cpp |
+++ b/Shared/PluginTabBase.cpp |
@@ -29,6 +29,8 @@ |
CPluginTabBase::CPluginTabBase(CPluginClass* plugin) : m_plugin(plugin), m_isActivated(false) |
{ |
+ m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter()); |
+ |
CPluginClient* client = CPluginClient::GetInstance(); |
if (client->GetIEVersion() < 10) |
{ |
@@ -132,6 +134,9 @@ |
ClearFrameCache(GetDocumentDomain()); |
#endif |
+ std::string domainString = CT2A(GetDocumentDomain()); |
+ m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetFilterEngine()->GetElementHidingSelectors(domainString)); |
+ |
#ifdef SUPPORT_DOM_TRAVERSER |
m_traverser->ClearCache(); |
#endif |
@@ -412,7 +417,6 @@ |
if (s_filterVersion != newFilterVersion) |
{ |
s_filterVersion = newFilterVersion; |
- client->LoadFilters(); |
isChanged = true; |
} |
#endif |