nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService(NS_WINDOWWATCHER_CONTRACTID));
nsNativeAppSupportOS2::OpenWindow( const char*urlstr, const char *args ) {  nsresult rv = NS_ERROR_FAILURE;  nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));  nsCOMPtr<nsISupportsCString> sarg(do_CreateInstance(NS_SUPPORTS_CSTRING_CONTRACTID));  if (sarg)    sarg->SetData(args);  if (wwatch && sarg) {    nsCOMPtr<nsIDOMWindow> newWindow;    rv = wwatch->OpenWindow(0, urlstr, "_blank", "chrome,dialog=no,all",                   sarg, getter_AddRefs(newWindow));#if MOZ_DEBUG_DDE  } else {      printf("Get WindowWatcher (or create string) failed\n");#endif  }  return rv;}