Added precondition when no content viewer.
git-svn-id: svn://10.0.0.236/trunk@26124 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -292,6 +292,7 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
|
||||
#ifdef rickgdebug
|
||||
rv = NS_New_HTML_ContentSinkStream(&sink);
|
||||
#else
|
||||
NS_PRECONDITION(nsnull != aContainer, "No content viewer container");
|
||||
aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
|
||||
rv = NS_NewHTMLContentSink(&sink, this, aURL, webShell);
|
||||
NS_IF_RELEASE(webShell);
|
||||
|
||||
Reference in New Issue
Block a user