Make documents be consistent with docshell wrt what the actual document URI

is. Bug 335457, r=dveditz, sr=jst, a=mconnor


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@201095 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-06-28 15:37:04 +00:00
parent 2b63de2656
commit 3ffbf1650f
3 changed files with 19 additions and 27 deletions

View File

@@ -7393,9 +7393,7 @@ nsDocShell::OnLoadingSite(nsIChannel * aChannel, PRBool aFireOnLocationChange,
// If this a redirect, use the final url (uri)
// else use the original url
//
// The better way would be to trust the OnRedirect() that necko gives us.
// But this notification happen after the necko notification and hence
// overrides it. Until OnRedirect() gets settles out, let us do this.
// Note that this should match what documents do (see nsDocument::Reset).
nsLoadFlags loadFlags = 0;
aChannel->GetLoadFlags(&loadFlags);
if (loadFlags & nsIChannel::LOAD_REPLACE)