nsCOMPtr<nsIURI> uri; NS_ENSURE_SUCCESS(NS_NewURI(getter_AddRefs(uri), nsLiteralString(aURL), nsnull), NS_ERROR_FAILURE); SetCurrentURI(uri);
mURL = aURL;
nsWebShell::SetURL(const PRUnichar* aURL){  nsCOMPtr<nsIURI> uri;  NS_ENSURE_SUCCESS(NS_NewURI(getter_AddRefs(uri), nsLiteralString(aURL),                              nsnull),                    NS_ERROR_FAILURE);  SetCurrentURI(uri);  return NS_OK;}