Bug 35986: document==NULL for FRAMEs created without SRC; r=kmcclusk

git-svn-id: svn://10.0.0.236/trunk@75528 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-08-03 22:23:48 +00:00
parent ac0908f872
commit e5357b4864
2 changed files with 4 additions and 4 deletions

View File

@@ -836,8 +836,8 @@ nsHTMLFrameInnerFrame::DoLoadURL(nsIPresContext* aPresContext)
nsAutoString url;
GetURL(parentContent, url);
if (url.IsEmpty())
return NS_OK;
if (url.IsEmpty()) // Load about:blank into a frame if not URL is specified (bug 35986)
url = NS_ConvertASCIItoUCS2("about:blank");
// Make an absolute URL
nsCOMPtr<nsIURI> baseURL;

View File

@@ -836,8 +836,8 @@ nsHTMLFrameInnerFrame::DoLoadURL(nsIPresContext* aPresContext)
nsAutoString url;
GetURL(parentContent, url);
if (url.IsEmpty())
return NS_OK;
if (url.IsEmpty()) // Load about:blank into a frame if not URL is specified (bug 35986)
url = NS_ConvertASCIItoUCS2("about:blank");
// Make an absolute URL
nsCOMPtr<nsIURI> baseURL;