Fix bug 400556 by tearing down editor a little earlier. r+sr=peterv

git-svn-id: svn://10.0.0.236/trunk@240267 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-12-03 02:07:16 +00:00
parent c60a9953d3
commit 0f1eee4cd8
3 changed files with 16 additions and 1 deletions

View File

@@ -1004,6 +1004,12 @@ nsDocShell::FirePageHideNotification(PRBool aIsUnload)
}
}
// Now make sure our editor, if any, is torn down before we go
// any farther.
if (mEditorData) {
mEditorData->TearDownEditor();
}
return NS_OK;
}