Described is a technology by which a managed web browser control hosts an
unmanaged web OLE control to control navigation requests by the unmanaged
web OLE control on behalf of partially trusted code. Site locking may be
performed to constrain a site to navigation only to other pages within
its site, thereby preventing navigation to an undesirable location. In
one example, the unmanaged web OLE control communicates information
corresponding to a navigation request to the managed web browser control,
and the managed web browser control processes the information to
establish whether the navigation is to be allowed or blocked. The
benefits of site-locking with respect to privacy are also described, as
is z-order management to protect against site spoofing.