| Index: src/plugin/PluginTabBase.cpp |
| =================================================================== |
| --- a/src/plugin/PluginTabBase.cpp |
| +++ b/src/plugin/PluginTabBase.cpp |
| @@ -84,10 +84,18 @@ |
| namespace |
| { |
| + // Entry Point |
| void FilterLoader(CPluginTabBase* tabBase) |
| { |
| - tabBase->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHidingSelectors(tabBase->GetDocumentDomain())); |
| - SetEvent(tabBase->m_filter->hideFiltersLoadedEvent); |
| + try |
| + { |
| + tabBase->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHidingSelectors(tabBase->GetDocumentDomain())); |
| + SetEvent(tabBase->m_filter->hideFiltersLoadedEvent); |
| + } |
| + catch (...) |
| + { |
| + // As a thread-main function, we truncate any C++ exception. |
| + } |
| } |
| } |