OnLoadingSite now takes a channel instead of a uri. Also we now don't set the currentURI or the referrer during a normal load in DoLoadURL. We make sure to do it after the content has been targetted which is when DoContent is called.

This commit is contained in:
tbogard%aol.net 2000-03-30 02:24:18 +00:00
Родитель 59c2f71b03
Коммит 17d9db5925
2 изменённых файлов: 2 добавлений и 16 удалений

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

@ -1248,13 +1248,6 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
}
}
// Fix for bug 1646. Change the notion of current url and referrer only after
// the document load succeeds (but only if we're not targeting another window).
if (NS_SUCCEEDED(rv) && !aWindowTarget) {
SetCurrentURI(aUri);
SetReferrer(aReferrer);
}
return rv;
}
@ -1421,7 +1414,7 @@ nsWebShell::DoContent(const char * aContentType,
SetFocus(); // force focus to get set on the retargeted window...
}
OnLoadingSite(aUri);
OnLoadingSite(aOpenedChannel);
return CreateContentViewer(aContentType, aCommand, aOpenedChannel,
aContentHandler);

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

@ -1248,13 +1248,6 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
}
}
// Fix for bug 1646. Change the notion of current url and referrer only after
// the document load succeeds (but only if we're not targeting another window).
if (NS_SUCCEEDED(rv) && !aWindowTarget) {
SetCurrentURI(aUri);
SetReferrer(aReferrer);
}
return rv;
}
@ -1421,7 +1414,7 @@ nsWebShell::DoContent(const char * aContentType,
SetFocus(); // force focus to get set on the retargeted window...
}
OnLoadingSite(aUri);
OnLoadingSite(aOpenedChannel);
return CreateContentViewer(aContentType, aCommand, aOpenedChannel,
aContentHandler);