r = docShell->LoadURI((const PRUnichar *) "http://www.yahoo.com", nsIWebNavigation::LOAD_FLAGS_NONE, nsnull, nsnull, nsnull);
This is wrong. You want to use NS_LITERAL_STRING("http://www.yahoo.com").get() or something....
nsCOMPtr<nsIDOMDocument> dom;
docShell->GetDocument(getter_AddRefs(dom));
Er... you do this _immediately_? URI loads are asynchronous, so you need to wait for the data to load to do this (and watch for the load end via nsIWebProgress notifications, probably).
-Boris _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
