Bug 474349. Set mOSHE when starting load for document.write, since there will never be an Embed call, and do so in all cases, not just when we already have an mOSHE. r+sr=jst

This commit is contained in:
Boris Zbarsky 2009-01-22 14:33:10 -05:00
Родитель 6c6b4aa78b
Коммит 79983342a3
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -5103,8 +5103,9 @@ nsDocShell::OnStateChange(nsIWebProgress * aProgress, nsIRequest * aRequest,
SetCurrentURI(uri, aRequest, PR_TRUE);
// Save history state of the previous page
rv = PersistLayoutHistoryState();
if (mOSHE)
SetHistoryEntry(&mOSHE, mLSHE);
// We'll never get an Embed() for this load, so just go ahead
// and SetHistoryEntry now.
SetHistoryEntry(&mOSHE, mLSHE);
}
}