rv = CreateBrowserWindow(nsIWebBrowserChrome::CHROME_ALL, nsnull, getter_AddRefs(chrome));  if (NS_SUCCEEDED(rv)) {
nsIWebBrowserChrome *chrome = nsnull; rv = CreateBrowserWindow(nsIWebBrowserChrome::CHROME_ALL, nsnull, &chrome); if (NS_SUCCEEDED(rv)) {
nsresult OpenWebPage(const char *url){  nsresult             rv;  nsCOMPtr<nsIWebBrowserChrome> chrome;  rv = CreateBrowserWindow(nsIWebBrowserChrome::CHROME_ALL, nsnull,                           getter_AddRefs(chrome));  if (NS_SUCCEEDED(rv)) {    // Start loading a page    nsCOMPtr<nsIWebBrowser> newBrowser;    chrome->GetWebBrowser(getter_AddRefs(newBrowser));    nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(newBrowser));    return webNav->LoadURI(NS_ConvertASCIItoUCS2(url).GetUnicode(), nsIWebNavigation::LOAD_FLAGS_NONE);  }  return rv;}   