Fix for bug 403501 (Rich text editing broken after back, forward in history). r/sr=jst.

git-svn-id: svn://10.0.0.236/trunk@240466 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2007-12-05 00:28:24 +00:00
parent 60aac46d1e
commit ec1862dcf0
2 changed files with 3 additions and 2 deletions

View File

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