CWebBrowserContainer *val = 0;
PtWidget_t *val = 0;
CWebBrowserContainer *CPromptService::GetWebBrowser(nsIDOMWindow *aWindow){  nsCOMPtr<nsIWebBrowserChrome> chrome;  CWebBrowserContainer *val = 0;	nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));	if (!wwatch) return nsnull;  if( wwatch ) {    nsCOMPtr<nsIDOMWindow> fosterParent;    if (!aWindow) { // it will be a dependent window. try to find a foster parent.      wwatch->GetActiveWindow(getter_AddRefs(fosterParent));      aWindow = fosterParent;    }    wwatch->GetChromeForWindow(aWindow, getter_AddRefs(chrome));  }  if (chrome) {    nsCOMPtr<nsIEmbeddingSiteWindow> site(do_QueryInterface(chrome));    if (site) {      site->GetSiteWindow(reinterpret_cast<void **>(&val));    }  }  return val;}