Move documentURI to a new interface. b=157133. r=rpotts@netscape.com, sr=darin@netscape.com

git-svn-id: svn://10.0.0.236/trunk@130841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2002-09-30 23:18:43 +00:00
parent 31397579e1
commit 5b28814356
11 changed files with 141 additions and 26 deletions

View File

@@ -58,6 +58,12 @@
#include "nsIPluginViewer.h"
#include "nsContentPolicyUtils.h" // NS_CheckContentLoadPolicy(...)
// we want to explore making the document own the load group
// so we can associate the document URI with the load group.
// until this point, we have an evil hack:
#include "nsIHttpChannelInternal.h"
// Local Includes
#include "nsDocShell.h"
#include "nsDocShellLoadInfo.h"
@@ -5099,12 +5105,14 @@ nsDocShell::DoURILoad(nsIURI * aURI,
channel->SetOriginalURI(aURI);
//hack
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
if (httpChannel) {
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal(do_QueryInterface(channel));
if (httpChannelInternal) {
if (firstParty) {
httpChannel->SetDocumentURI(aURI);
httpChannelInternal->SetDocumentURI(aURI);
} else {
httpChannel->SetDocumentURI(aReferrerURI);
httpChannelInternal->SetDocumentURI(aReferrerURI);
}
}