Re: Reusing WB versus script blockers
- From: "He Shiming" <mailbill(NOSPAM)@21cn.com.nospam>
- Date: Wed, 12 Oct 2005 13:17:22 +0800
"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
.
- Follow-Ups:
- Re: Reusing WB versus script blockers
- From: Igor Tandetnik
- Re: Reusing WB versus script blockers
- References:
- Reusing WB versus script blockers
- From: He Shiming
- Re: Reusing WB versus script blockers
- From: Igor Tandetnik
- Re: Reusing WB versus script blockers
- From: He Shiming
- Re: Reusing WB versus script blockers
- From: Igor Tandetnik
- Reusing WB versus script blockers
- Prev by Date: Re: Reusing WB versus script blockers
- Next by Date: Re: Reusing WB versus script blockers
- Previous by thread: Re: Reusing WB versus script blockers
- Next by thread: Re: Reusing WB versus script blockers
- Index(es):