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

git-svn-id: svn://10.0.0.236/trunk@239207 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2007-11-12 14:47:04 +00:00
parent a16510ee87
commit 1562e95bd8
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!
{