Erik Walter wrote:

Is there a way to do that through the WebPersist interface of the embedding stuff?

Good question... Last I checked, Adam (nsIWebBrowserPersist owner) said that it's the responsibility of the caller to pass in a pointer to a document which was loaded with script turned _off_ to avoid this problem... So in other words, one would want to get the doc from cache and reparse it, with script turned off, then pass that in.


Of course doing that is nontrivial....

I'm just doing a SaveDocument() right now, is there some additional encoding flag I need to set.

In terms of this interface, I was suggesting you do a saveURI. But that will not save the images and CSS...


The basic problem is that the persistence object has no way to tell apart content written by script and content that is part of the original HTML, which is why this somehow needs to be the caller's responsibility.

-Boris


Reply via email to