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: 13 Mar 2007 08:21:44 -0700,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


window.external failing on hosted IE7   
Hi

My app hosts a web browser ctrl in a MFC CHtmlView with a custom
control-site implementing IInternetSecurityManager.

ProcessUrlAction() is implemented as:

{
	METHOD_PROLOGUE(COleControlSiteEx, InternetSecurityManager)

	DWORD dwPolicy = URLPOLICY_ALLOW;

	if ( cbPolicy >= sizeof (DWORD))
	{
		*(DWORD*) pPolicy = dwPolicy;
		return S_OK;
	}
	else
		return S_FALSE;
}

Inside the browser runs a page with some vbscript that calls back into
the app's object model obtained through window.external. This all
works great on IE6, but it doesn't work on IE7, must be something with
the new security model, but I could not find any info related to
window.external restrictions...

Any advice would be appreciated!

Bart van Haaff
date: 13 Mar 2007 08:21:44 -0700   author:   Bart

Google
 
Web ureader.com


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