Fix a number of security bugs. (I can't see the numbers at home because

they have restricted visibility.)
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63404 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com
2000-03-18 17:48:12 +00:00
parent 0326272d76
commit 09ff59d528
10 changed files with 136 additions and 128 deletions

View File

@@ -1245,8 +1245,8 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
}
// Fix for bug 1646. Change the notion of current url and referrer only after
// the document load succeeds.
if (NS_SUCCEEDED(rv)) {
// the document load succeeds (but only if we're not targeting another window).
if (NS_SUCCEEDED(rv) && !aWindowTarget) {
SetCurrentURI(aUri);
SetReferrer(aReferrer);
}