Re: Reusing WB versus script blockers



"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:esMSzitzFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
> "He Shiming" <mailbill(NOSPAM)@21cn.com.nospam> wrote in message
> news:%23kTsXWtzFHA.1256@xxxxxxxxxxxxxxxxxxxxxxx
>> Thanks for the answer. Now I understand that I can programmatically "map
>> URLs to zone" thru IInternetSecuirtyManager::SetZoneMapping.
>
> You probably mean MapUrlToZone. A zone is not all that important - it just
> selects a set of policies for various conditions that can occur while
> processing a document. With IInternetSecuirtyManager implementation, you
> have full control of those policies inside ProcessUrlAction method.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>

Hi Igor,

I've got some problem implementing the IInternetSecurityManager interface.
My WB hosting class inherits from IServiceProviderImpl<>, and
IInternetSecurityManager. I've added SID_SInternetSecurityManager into the
SERVICE_ENTRY. But those IInternetSecurityManager methods are never called.
What am I missing here?

It's probably because my hosting window, which implemented these two
interfaces, is actually the parent window of the web browser. The WB control
is created using in-place activation during WM_CREATE of the parent window.
And I'm holding a smart pointer of IWebBrowser2 as a member variable. How do
I tell it to use my IServiceProvider and IInternetSecurityManager
implementation?

Best regards,
He Shiming


.