summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-09 16:54:27 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-09 16:54:27 -0500
commitc20b0d75a7d9b5cc88d037f602184d6c313e7942 (patch)
tree29493ecd6a4dd21ff966c29f4fc20a396ef9d715 /components
parent5c005621a633a42d04fb7d540a1ee0587a806446 (diff)
downloadaura-central-c20b0d75a7d9b5cc88d037f602184d6c313e7942.tar.gz
Revert "Issue %3057 - Part 6: Revert some of the previous changes for new approach."
This reverts commit 2b321abe2ee48f8c33de8e7f90b59ba0e88e388d.
Diffstat (limited to 'components')
-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);