зеркало из https://github.com/mozilla/gecko-dev.git
r=pollmann. Fix for nsbeta3++ bug 48382. Fixes the infinite loop when location.href was set from the onload handler of a frame.
This commit is contained in:
Родитель
6cde07b1b5
Коммит
b46048fc9b
|
@ -321,7 +321,7 @@ nsDocShell::LoadURI(nsIURI* aURI, nsIDocShellLoadInfo* aLoadInfo, PRUint32 aLoad
|
|||
aLoadInfo->GetTarget(getter_Copies(target));
|
||||
}
|
||||
|
||||
if (!shEntry && loadType != LOAD_NORMAL_REPLACE) {
|
||||
if (!shEntry && loadType != LOAD_NORMAL_REPLACE && mCurrentURI == nsnull) {
|
||||
/* Check if we are in the middle of loading a subframe whose parent
|
||||
* was originally loaded thro' Session History. ie., you were in a frameset
|
||||
* page, went somewhere else and clicked 'back'. The loading of the root page
|
||||
|
|
Загрузка…
Ссылка в новой задаче