зеркало из https://github.com/mozilla/pjs.git
Fix bug 400556 by tearing down editor a little earlier. r+sr=peterv
This commit is contained in:
Родитель
05bcfe76bf
Коммит
31e19b77d3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -67,6 +67,12 @@ nsDocShellEditorData::nsDocShellEditorData(nsIDocShell* inOwningDocShell)
|
|||
|
||||
----------------------------------------------------------------------------*/
|
||||
nsDocShellEditorData::~nsDocShellEditorData()
|
||||
{
|
||||
TearDownEditor();
|
||||
}
|
||||
|
||||
void
|
||||
nsDocShellEditorData::TearDownEditor()
|
||||
{
|
||||
if (mEditingSession)
|
||||
{
|
||||
|
|
|
@ -66,7 +66,7 @@ public:
|
|||
~nsDocShellEditorData();
|
||||
|
||||
|
||||
// set a flag to say this frame should be editable when the next url loads
|
||||
// set a flag to say this frame should be editable when the next url loads
|
||||
nsresult MakeEditable(PRBool inWaitForUriLoad);
|
||||
|
||||
PRBool GetEditable();
|
||||
|
@ -84,6 +84,9 @@ public:
|
|||
// set the editor on this docShell
|
||||
nsresult SetEditor(nsIEditor *inEditor);
|
||||
|
||||
// Tear down the editor on this docshell, if any.
|
||||
void TearDownEditor();
|
||||
|
||||
protected:
|
||||
|
||||
nsresult EnsureEditingSession();
|
||||
|
|
Загрузка…
Ссылка в новой задаче