I think in javascript, I can create a nsIWebBrowserPersist instance like
following:
persist =
Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].
createInstance(Components.interfaces.nsIWebBrowserPersist);
So suppose I give user a button in my toolbar, after a page is loaded, then
user presses the button, how I can get the reference to the current
nsIDOMWindow? So that I can get the reference to the nsIDocument.
I searched in the source tree, but I am afraid that I didn't find the caller
of saveDocument and saveURL. So would you...? thanks!!!
>
> Look up the callers of saveDocument and saveURL (the functions defined in
> contentAreaUtils).
>
> Boris
> --
> Washington [D.C.] is a city of Southern efficiency and
> Northern charm.
> -- John F. Kennedy
>
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib