mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Fix for bug 633738 (quora.com bloats out of control (part 3)) - keep editor alive when navigating back. r=bz, a=jst.
This commit is contained in:
parent
c4aeb00d0d
commit
54ff70be24
@ -7128,10 +7128,16 @@ nsDocShell::RestoreFromHistory()
|
||||
// Reattach to the window object.
|
||||
rv = mContentViewer->Open(windowState, mLSHE);
|
||||
|
||||
// Hack to keep nsDocShellEditorData alive across the
|
||||
// SetContentViewer(nsnull) call below.
|
||||
nsAutoPtr<nsDocShellEditorData> data(mLSHE->ForgetEditorData());
|
||||
|
||||
// Now remove it from the cached presentation.
|
||||
mLSHE->SetContentViewer(nsnull);
|
||||
mEODForCurrentDocument = PR_FALSE;
|
||||
|
||||
mLSHE->SetEditorData(data.forget());
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
nsCOMPtr<nsISupportsArray> refreshURIs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user