Bug 459613. When we tear down a textcontrol frame, tell its editor that we're blowing away the frame tree so it doesn't try to clear the spellcheck selection, which not only wastes time but does GetPrimaryFrame for during frame destruction which is a no-no. r+sr=mats

This commit is contained in:
Robert O'Callahan
2008-12-12 21:34:43 +13:00
parent 0249c8e0e0
commit e0b25b33e5
13 changed files with 52 additions and 15 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ void
nsDocShellEditorData::TearDownEditor()
{
if (mEditor) {
mEditor->PreDestroy();
mEditor->PreDestroy(PR_FALSE);
mEditor = nsnull;
}
mEditingSession = nsnull;
@@ -99,7 +99,7 @@ nsDocShellEditorData::MakeEditable(PRBool inWaitForUriLoad)
{
NS_WARNING("Destroying existing editor on frame");
mEditor->PreDestroy();
mEditor->PreDestroy(PR_FALSE);
mEditor = nsnull;
}
@@ -186,7 +186,7 @@ nsDocShellEditorData::SetEditor(nsIEditor *inEditor)
{
if (mEditor)
{
mEditor->PreDestroy();
mEditor->PreDestroy(PR_FALSE);
mEditor = nsnull;
}