nsHTMLAnchorElement::GetPathname(nsString& aPathname)
nsHTMLAnchorElement::GetPathname(nsAWritableString& aPathname)
nsHTMLAnchorElement::GetPathname(nsString& aPathname){  nsAutoString href;  nsCOMPtr<nsIURI> uri;  nsresult result = NS_OK;  aPathname.Truncate();    result = GetHref(href);  if (NS_FAILED(result)) {    return result;  }  result = NS_NewURI(getter_AddRefs(uri), href);  if (NS_FAILED(result)) {    return result;  }  nsCOMPtr<nsIURL> url(do_QueryInterface(uri));  if (!url) {    return NS_OK;  }  char* file;  result = url->GetFilePath(&file);  if (NS_FAILED(result)) {    return result;  }  aPathname.AssignWithConversion(file);  nsCRT::free(file);  return result;}