On Apr 29, 3:50 pm, "Dmitry Dartz" <[email protected]> wrote:
> >> I am using the loadURI method (nsIWebNavigation) to load a URL, I
> >> would like to be able to turn on/off the loading of images, CSS and
> >> any other sub-content on the page.  I was told the docShell controls
> >> this, but how do I get the docShell to do this?
>
> > QI the webnavigation to nsIDocShell.  That's assuming you're not looking
> > at an nsWebBrowser; in that case, QI to nsIWebBrowserSetup and use
> > SetProperty on that.
>
> Would this also turn off CSS built into HTML?
> What's about JS?
>
> TIA
> -jv

It doesn't turn off CSS, but it does turn off JS.  So its not really
doing what I need it to do (Still need JS executed).  What I am
looking to do is create a DOM as best as possible from a blob of HTML
without accessing any external documents.  Haven't figured this out
quite yet.

V.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to