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.

git-svn-id: svn://10.0.0.236/trunk@64559 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-03-30 02:24:18 +00:00
parent bb2ee1727c
commit d6189207fb
2 changed files with 2 additions and 16 deletions

View File

@@ -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);