rv = NS_NewNativeLocalFile(nsCString(), PR_TRUE, getter_AddRefs(localFile));
rv = NS_NewNativeLocalFile(EmptyCString(), PR_TRUE, getter_AddRefs(localFile));
net_GetFileFromURLSpec(const nsACString &aURL, nsIFile **result){    // NOTE: See also the implementation in nsURLHelperOSX.cpp,    // which is based on this.    nsresult rv;    nsCOMPtr<nsILocalFile> localFile;    rv = NS_NewNativeLocalFile(nsCString(), PR_TRUE, getter_AddRefs(localFile));    if (NS_FAILED(rv))      return rv;        nsCAutoString directory, fileBaseName, fileExtension, path;    rv = net_ParseFileURL(aURL, directory, fileBaseName, fileExtension);    if (NS_FAILED(rv)) return rv;    if (!directory.IsEmpty())        NS_EscapeURL(directory, esc_Directory|esc_AlwaysCopy, path);    if (!fileBaseName.IsEmpty())        NS_EscapeURL(fileBaseName, esc_FileBaseName|esc_AlwaysCopy, path);    if (!fileExtension.IsEmpty()) {        path += '.';        NS_EscapeURL(fileExtension, esc_FileExtension|esc_AlwaysCopy, path);    }        NS_UnescapeURL(path);    // assuming path is encoded in the native charset    rv = localFile->InitWithNativePath(path);    if (NS_FAILED(rv)) return rv;    NS_ADDREF(*result = localFile);    return NS_OK;}