Keeping WebBrowser in the "Local Zone" after IPersistStreamInit::Load?
- From: "He Shiming" <mailbill(NOSPAM)@21cn.com.nospam>
- Date: Mon, 16 May 2005 20:18:10 +0800
Hi,
I'm wondering if it's possible to keep the hosted WebBrowser control in the
"Local Zone" after using IPersistStreamInit::Load to feed HTML content.
After the creation of the WebBrowser ctrl, I call IWebBrowser2::Navigate to
navigate to a res:// URL (because it'll be treated as a local zone URL). I
need to reference some of the other res:// URLs so that I would like to stay
in the local zone. However, after calling IPersistStreamInit::Load, the URL
of the WB ctrl seemed to be forwarded to about:blank automatically.
about:blank is an Internet Zone URL, and I can no longer reference local
res:// URLs. (I know from MSKB article Q325482 that after the May 15, 2002
Cumulative Patch, IE can no longer reference a res:// URL from the Internet
Zone.)
I do need to use IPersistStreamInit::Load to change the HTML content
dynamically. How do I make the WB ctrl stay in the local zone?
Or, how do I programatically make about:blank a trusted site?
Thanks in advance,
--
He Shiming
.
- Follow-Ups:
- Prev by Date: Re: How invoke JavaScript function from WebBrowser control.
- Next by Date: Re: AxWebBrowser true document size problem
- Previous by thread: How invoke JavaScript function from WebBrowser control.
- Next by thread: Re: Keeping WebBrowser in the "Local Zone" after IPersistStreamInit::Load?
- Index(es):