fix for making skins script-safe. r=scc

This commit is contained in:
hyatt@netscape.com
2000-05-19 04:48:43 +00:00
parent 4592e77121
commit 33ee6d68e0
91 changed files with 597 additions and 333 deletions

View File

@@ -301,7 +301,7 @@ nsDocShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode)
// (5) hook up the document and its content
nsCOMPtr<nsIContent> rootContent = do_QueryInterface(aRootNode);
NS_ENSURE_TRUE(doc, NS_ERROR_OUT_OF_MEMORY);
NS_ENSURE_SUCCESS(rootContent->SetDocument(doc, PR_FALSE), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(rootContent->SetDocument(doc, PR_FALSE, PR_TRUE), NS_ERROR_FAILURE);
doc->SetRootContent(rootContent);
// (6) reflow the document