webNav->LoadURI(urlWString.GetUnicode(), nsIWebNavigation::LOAD_FLAGS_NONE);
webNav->LoadURI(urlWString.get(), nsIWebNavigation::LOAD_FLAGS_NONE);
void LoadURLInWindow(WindowPtr wind, const char* urlString){	OSErr		err = noErr;		if (wind == nil)	{		// this makes a new window		nsMacCommandLine&  cmdLine = nsMacCommandLine::GetMacCommandLine();		err = cmdLine.DispatchURLToNewBrowser(urlString);		ThrowIfOSErr(err);	}	// existing window. Go through hoops to load a URL in it	nsCOMPtr<nsIXULWindow>		xulWindow;	GetXULWindowFromWindowPtr(wind, getter_AddRefs(xulWindow));	ThrowErrIfNil(xulWindow, paramErr);		nsCOMPtr<nsIDocShellTreeItem>		contentShell;	xulWindow->GetPrimaryContentShell(getter_AddRefs(contentShell));	ThrowErrIfNil(contentShell, paramErr);	nsCOMPtr<nsIWebNavigation>			webNav(do_QueryInterface(contentShell));	ThrowErrIfNil(webNav, paramErr);	nsAutoString		urlWString; urlWString.AssignWithConversion(urlString);		webNav->LoadURI(urlWString.GetUnicode(), nsIWebNavigation::LOAD_FLAGS_NONE);}