Re: Keeping WebBrowser in the "Local Zone" after IPersistStreamInit::Load?



Well, it's not a zone problem. I figured it out. It's my bad syntax of the
res: protocol.

--
He Shiming

"He Shiming" <mailbill(NOSPAM)@21cn.com.nospam> wrote in message
news:%23TAeWFhWFHA.796@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>
>


.