Initialize the nsIURLGroup from the document base URL...

git-svn-id: svn://10.0.0.236/trunk@11702 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-10-01 21:45:20 +00:00
parent 58c795b984
commit e21a064e33
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include "nsIPostToServer.h"
#include "nsIStreamListener.h"
#include "nsIURL.h"
#include "nsIURLGroup.h"
#include "nsIContentViewerContainer.h"
#include "nsIWebShell.h"
#include "nsIDocumentLoader.h"
@@ -200,6 +201,7 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
NS_IF_RELEASE(mAttrStyleSheet);
NS_IF_RELEASE(mStyleAttrStyleSheet);
NS_IF_RELEASE(mDocumentURL);
NS_IF_RELEASE(mDocumentURLGroup);
if (nsnull != mDocumentTitle) {
delete mDocumentTitle;
mDocumentTitle = nsnull;
@@ -208,6 +210,8 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
mDocumentURL = aURL;
NS_ADDREF(aURL);
mDocumentURLGroup = aURL->GetURLGroup();
static NS_DEFINE_IID(kCParserIID, NS_IPARSER_IID);
static NS_DEFINE_IID(kCParserCID, NS_PARSER_IID);