зеркало из https://github.com/mozilla/pjs.git
Fix for bug 403501 (Rich text editing broken after back, forward in history). r/sr=jst.
This commit is contained in:
Родитель
61881e0b17
Коммит
22d3795fbb
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -763,7 +763,8 @@ nsEditingSession::OnStateChange(nsIWebProgress *aWebProgress,
|
|||
}
|
||||
|
||||
// Document level notification...
|
||||
if (aStateFlags & nsIWebProgressListener::STATE_IS_DOCUMENT) {
|
||||
if (aStateFlags & nsIWebProgressListener::STATE_IS_DOCUMENT &&
|
||||
!(aStateFlags & nsIWebProgressListener::STATE_RESTORING)) {
|
||||
#ifdef NOISY_DOC_LOADING
|
||||
printf("STATE_START & STATE_IS_DOCUMENT flags=%x\n", aStateFlags);
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче