summaryrefslogtreecommitdiff
path: root/components/jar/src/nsJAR.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/jar/src/nsJAR.cpp')
-rw-r--r--components/jar/src/nsJAR.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/jar/src/nsJAR.cpp b/components/jar/src/nsJAR.cpp
index f79a99948..205649e8d 100644
--- a/components/jar/src/nsJAR.cpp
+++ b/components/jar/src/nsJAR.cpp
@@ -418,7 +418,7 @@ nsJAR::GetJarPath(nsACString& aResult)
{
NS_ENSURE_ARG_POINTER(mZipFile);
- return mZipFile->GetNativePath(aResult);
+ return mZipFile->GetPersistentDescriptor(aResult);
}
nsresult
@@ -1120,7 +1120,7 @@ nsZipReaderCache::IsCached(nsIFile* zipFile, bool* aResult)
MutexAutoLock lock(mLock);
nsAutoCString uri;
- rv = zipFile->GetNativePath(uri);
+ rv = zipFile->GetPersistentDescriptor(uri);
if (NS_FAILED(rv))
return rv;
@@ -1142,7 +1142,7 @@ nsZipReaderCache::GetZip(nsIFile* zipFile, nsIZipReader* *result)
#endif
nsAutoCString uri;
- rv = zipFile->GetNativePath(uri);
+ rv = zipFile->GetPersistentDescriptor(uri);
if (NS_FAILED(rv)) return rv;
uri.Insert(NS_LITERAL_CSTRING("file:"), 0);
@@ -1186,7 +1186,7 @@ nsZipReaderCache::GetInnerZip(nsIFile* zipFile, const nsACString &entry,
#endif
nsAutoCString uri;
- rv = zipFile->GetNativePath(uri);
+ rv = zipFile->GetPersistentDescriptor(uri);
if (NS_FAILED(rv)) return rv;
uri.Insert(NS_LITERAL_CSTRING("jar:"), 0);
@@ -1229,7 +1229,7 @@ nsZipReaderCache::GetFd(nsIFile* zipFile, PRFileDesc** aRetVal)
nsresult rv;
nsAutoCString uri;
- rv = zipFile->GetNativePath(uri);
+ rv = zipFile->GetPersistentDescriptor(uri);
if (NS_FAILED(rv)) {
return rv;
}
@@ -1370,7 +1370,7 @@ nsZipReaderCache::Observe(nsISupports *aSubject,
return NS_OK;
nsAutoCString uri;
- if (NS_FAILED(file->GetNativePath(uri)))
+ if (NS_FAILED(file->GetPersistentDescriptor(uri)))
return NS_OK;
uri.Insert(NS_LITERAL_CSTRING("file:"), 0);