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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user