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

is.  Bug 335457, r=dveditz, sr=jst
This commit is contained in:
bzbarsky@mit.edu
2006-05-04 15:21:50 +00:00
parent 06384e04d8
commit dca073d84c
3 changed files with 19 additions and 27 deletions

View File

@@ -7373,9 +7373,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)