Re: Custom InternetSecurityManager -> new Windows via Popup



xbromy <xbromy@xxxxxxxxxxxxxxxxxxxxxxxxx> 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


.



Relevant Pages

  • Re: Webbrowser control looses sessionid on "newwindow"
    ... begin navigation and that the following onclick event which uses javascript ... I just did a test with your test page in my own shdocvw browser. ... If the new_window event is cancelled, ... instance of the webbrowser control), ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Webbrowser control looses sessionid on "newwindow"
    ... I haven't gone to the trouble of creating a beresque browser to test your ... webbrowser control this will open a new instance of Internet Explorer on the ... contrains info and this window has the "Server Error" page. ... Navigate to that page and click the link. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Connecting to a running instance of an embedded webBrowser con
    ... Open Spy++ if you have it, and get the classname for the window you are after (the browser itself) ... There are Win32 functions that allow code to access other processes, the main window, child windows, etc.. ... className should be that of the WebBrowser control, and windowName can be specified as null. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to pass the IE windows handle out of the WebBrowser?
    ... I tried the NewWindow2 with csExWB but it does not work. ... and display page in another WebBrowser control so that I can parse the DOM ... window with desired content and a webbrowser window with blank content. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: How to pass the IE windows handle out of the WebBrowser?
    ... You need to handle the NewWindow2 event and pass your new window's ... and display page in another WebBrowser control so that I can parse the DOM ... window with desired content and a webbrowser window with blank content. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)