Fix for bug 390446 (Javascript is still disabled after leaving a page that had designMode on). r/sr=jst.

This commit is contained in:
2007-11-12 06:47:03 -08:00
parent 815fd44c45
commit 0cd1701985
7 changed files with 83 additions and 74 deletions

View File

@@ -73,7 +73,7 @@ nsDocShellEditorData::~nsDocShellEditorData()
nsCOMPtr<nsIDOMWindow> domWindow = do_GetInterface(mDocShell);
// This will eventually call nsDocShellEditorData::SetEditor(nsnull)
// which will call mEditorPreDestroy() and delete the editor
mEditingSession->TearDownEditorOnWindow(domWindow, PR_TRUE);
mEditingSession->TearDownEditorOnWindow(domWindow);
}
else if (mEditor) // Should never have this w/o nsEditingSession!
{