Re: nsIWebBrowserPersist saveDocument() method
Nashid <[email protected]> Wed, 7 Apr 2010 07:21:36 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <688f79ed-8758-4e0c-bc78-9828af80e0b8@i37g2000yqn.googlegroups.com> |
On Apr 7, 2:26 am, Boris Zbarsky <[email protected]> wrote: > On 4/6/10 9:20 PM, Nashid wrote: > > > I am using mozilla interface nsIWebBrowserPersist (https:// > > developer.mozilla.org/en/XPCOM_Interface_Reference/ > > nsIWebBrowserPersist) with a method called saveDocument(). > > > I have integrated this one with mozrepl. So if I give repl.save() it > > is saving the page. > > > But the problem is it saves the html without any image. But as per > > specification it is to save the specified DOM document to file and > > optionally all linked files (e.g. images, CSS, JS& subframes). > > How are you calling saveDocument? > > -Boris wbp.saveDocument(content.document, file, null,null, encodingFlags, null);