|
|
|
date: Fri, 16 Feb 2007 05:46:03 -0800,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Re: Custom InternetSecurityManager -> new Windows via Popup
xbromy wrote:
> i've an MCF 4 Application with VS 6.0 C++ which uses a CWebBrowser.
>
> Now i'v added a custom InternetSecurityManager by implementing:
> COleControlSite, IInternetSecurityManager, IServiceProvider,
> IDocHostUIHandler.
>
> My problem: All is fine and the "ProcessUrlAction" works. But when my
> Website opens a new Windows via Javascript Popup the new window has
> the default Security... where must i set my implementation?
This new window is an instance of Internet Explorer, running in a
separate process. Since it's no longer an instance of WebBrowser control
you host, you can't control its security settings.
You want the new window to be an instance of your form, within your
process. See KB article KB184876 "How To Use the WebBrowser Control
NewWindow2 Event"
--
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
date: Fri, 16 Feb 2007 13:17:36 -0500
author: Igor Tandetnik
Re: Custom InternetSecurityManager -> new Windows via Popup
Hi Igor,
that was god for the first. I've tryed and it works. But now the popups
don't look like real popups (wrong size, menubar...)... is there a way to get
the layouts like the origin IE ?
Thanks
xbromy
"Igor Tandetnik" wrote:
> xbromy wrote:
> > i've an MCF 4 Application with VS 6.0 C++ which uses a CWebBrowser.
> >
> > Now i'v added a custom InternetSecurityManager by implementing:
> > COleControlSite, IInternetSecurityManager, IServiceProvider,
> > IDocHostUIHandler.
> >
> > My problem: All is fine and the "ProcessUrlAction" works. But when my
> > Website opens a new Windows via Javascript Popup the new window has
> > the default Security... where must i set my implementation?
>
> This new window is an instance of Internet Explorer, running in a
> separate process. Since it's no longer an instance of WebBrowser control
> you host, you can't control its security settings.
>
> You want the new window to be an instance of your form, within your
> process. See KB article KB184876 "How To Use the WebBrowser Control
> NewWindow2 Event"
> --
> 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
>
>
>
date: Mon, 19 Feb 2007 00:14:17 -0800
author: xbromy
|
|