Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 16 Feb 2007 05:46:03 -0800,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Custom InternetSecurityManager -> new Windows via Popup   
Hi,

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?

Thanks.

Dirk
date: Fri, 16 Feb 2007 05:46:03 -0800   author:   xbromy

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

Re: Custom InternetSecurityManager -> new Windows via Popup   
"xbromy"  wrote in message
news:3C6AA886-BF2C-4538-9032-AA670ABFFD31@microsoft.com
> 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 ?

See

http://groups.google.com/group/microsoft.public.windows.inetexplorer.ie55.programming.webbrowser_ctl/browse_frm/thread/92cddbf7fdd58092
KB article KB259963 "How To Obtain Width and Height Supplied to 
Window.open Inside the Visual C++ WebBrowser Host"

-- 
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 10:39:23 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us