Confirmed users
195
edits
Line 2: | Line 2: | ||
The <code>[[nsIContentViewer]]</code> saves itself to the SH Entry. It gets an SH Entry in its <code>Close</code> function as an argument, and saves itself there in <code>Destroy</code>. | The <code>[[nsIContentViewer]]</code> saves itself to the SH Entry. It gets an SH Entry in its <code>Close</code> function as an argument, and saves itself there in <code>Destroy</code>. | ||
These functions are called from <code>nsDocShell::RestoreFromHistory</code> or <code>nsDocShell::SetupNewViewer</code> (that latter one doesn't call Destroy?). | These functions are called from <code>nsDocShell::RestoreFromHistory</code> or <code>nsDocShell::SetupNewViewer</code> (that latter one doesn't call Destroy?). Things are only saved if <code>mSavingOldViewer</code> is true (otherwise, <code>null</code> is passed to Close). | ||
== Restoration from history == | == Restoration from history == |