Opened on 03/13/2015 at 04:03:08 PM
Last modified on 03/16/2015 at 11:19:43 AM
#2141 new change
Clean up: initializing of s_mimeFilter in CPluginClass::OnBeforeNavigate2
| Reported by: | sergz | Assignee: | |
|---|---|---|---|
| Priority: | P4 | Milestone: | |
| Module: | Adblock-Plus-for-Internet-Explorer | Keywords: | goodfirstbug |
| Cc: | sergz, oleksandr | Blocked By: | |
| Blocking: | Platform: | Internet Explorer | |
| Ready: | yes | Confidential: | no |
| Tester: | Verified working: | ||
| Review URL(s): | |||
Description
Background
- we don't need s_mimeFilter = CPluginClientFactory::GetMimeFilterClientInstance(); in OnBeforeNavigate2 because it's always registered in SetSite
- it's even not protected
What to change
Just remove it.
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.

It is there in case for some reason registering the mime filter didn't happen before the navigation. I would leave it just in case. However it does get called now: when blocking is disabled everywhere and a user is navigating to a webpage. This probably needs to be fixed so that it wouldn't register mime filter if it doesn't need to.