Readonly
currentCurrent state of the persister object.
Flags governing how data is fetched and saved from the network. It is best to set this value explicitly unless you are prepared to accept the default values.
Callback listener for progress notifications. The object that the embbedder supplies may also implement nsIInterfaceRequestor and be prepared to return nsIAuthPrompt or other interfaces that may be required to download data.
Readonly
resultValue indicating the success or failure of the persist operation.
NS_BINDING_ABORTED Operation cancelled.
NS_ERROR_FAILURE Non-specific failure.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Save the specified DOM document to file and optionally all linked files (e.g. images, CSS, JS & subframes). Do not call this method until the document has finished loading!
NS_ERROR_INVALID_ARG One or more arguments was invalid.
Document to save to file. Some implementations of
this interface may also support nullptr
to imply the currently loaded document. Can be an
nsIWebBrowserPersistDocument or Document.
Target local file. This may be a nsIFile object or an nsIURI object with a file scheme or a scheme that supports uploading (e.g. ftp).
Path to directory where URIs linked to the document are saved or nullptr if no linked URIs should be saved. This may be a nsIFile object or an nsIURI object with a file scheme.
The desired MIME type format to save the document and all subdocuments into or nullptr to use the default behaviour.
Flags to pass to the encoder.
For text documents, indicates the desired width to wrap text at. Parameter is ignored if wrapping is not specified by the encoding flags.
Save the specified URI to file.
NS_ERROR_INVALID_ARG One or more arguments was invalid.
URI to save to file. Some implementations of this interface
may also support nullptr
to imply the currently
loaded URI.
The triggering principal for the URI we're saving.
The necko cache key integer.
The referrer info for compute and send referrer via HTTP Referer header.
The cookieJarSettings for the HTTP channel which is saving the URI.
Post data to pass with an HTTP request or
nullptr
.
Additional headers to supply with an HTTP request
or nullptr
.
Target file. This may be a nsIFile object or an nsIURI object with a file scheme or a scheme that supports uploading (e.g. ftp).
The type of content we're saving.
Treat the save operation as private (ie. with regards to networking operations and persistence of intermediate data, etc.)
Generated using TypeDoc
Interface for persisting DOM documents and URIs to local or remote storage.