DocShell/Fastback: Difference between revisions
< DocShell
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
== Saving to history == | == Saving to history == | ||
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?). | |||
== Restoration from history == | == Restoration from history == | ||
Revision as of 18:56, 5 August 2005
Saving to history
The nsIContentViewer saves itself to the SH Entry. It gets an SH Entry in its Close function as an argument, and saves itself there in Destroy.
These functions are called from nsDocShell::RestoreFromHistory or nsDocShell::SetupNewViewer (that latter one doesn't call Destroy?).
Restoration from history
nsDocShell::InternalLoad checks whether the load is a history load and if so, whether it has a cached presentation.
It then calls nsDocShell::BeginRestore and if that succeeds, posts an event to call nsDocShell::RestoreFromHistory.
--Biesi 11:26, 5 Aug 2005 (PDT)