зеркало из https://github.com/mozilla/pjs.git
Fix for bug # 21767. Form values not reset upon reload. r=pollmann.
This commit is contained in:
Родитель
327f2dddb5
Коммит
7cd27e242d
|
@ -540,11 +540,15 @@ nsHistoryEntry::Load(nsIWebShell * aPrevEntry, PRBool aIsReload) {
|
|||
PRInt32 pcount=0, ccount=0;
|
||||
prev->GetChildCount(pcount);
|
||||
ccount = cur->GetChildCnt();
|
||||
|
||||
nsCOMPtr<nsISupports> historyObject;
|
||||
GetHistoryState(getter_AddRefs(historyObject));
|
||||
nsLoadType loadType = (nsLoadType)nsIChannel::LOAD_NORMAL;
|
||||
if (!aIsReload)
|
||||
loadType = (nsLoadType) nsISessionHistory::LOAD_HISTORY;
|
||||
if (!aIsReload) {
|
||||
loadType = (nsLoadType) nsISessionHistory::LOAD_HISTORY;
|
||||
GetHistoryState(getter_AddRefs(historyObject));
|
||||
}
|
||||
|
||||
|
||||
PRUnichar * uniURL = cSURL.ToNewUnicode();
|
||||
prev->SetURL(uniURL);
|
||||
prev->LoadURL(uniURL, nsnull, PR_FALSE, loadType, 0, historyObject);
|
||||
|
|
Загрузка…
Ссылка в новой задаче