Bug 685236 - Stop using GetNativePath in dom/xul. r=bz draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 16 Dec 2017 00:32:43 +0900
changeset 748087 59d5a2bf3d318fd61763d97ae5cb7fd8c0169aaa
parent 748086 d175a56b5aaaa54002212f6b73cbd3a49bad7619
child 748088 b67934d4d458a3e751def1c33c3c6d421772cf51
push id97067
push userVYV03354@nifty.ne.jp
push dateSun, 28 Jan 2018 02:40:47 +0000
reviewersbz
bugs685236
milestone60.0a1
Bug 685236 - Stop using GetNativePath in dom/xul. r=bz GetPersistentDescriptor is suitable for the serialization format. MozReview-Commit-ID: JOadBsw9xvM
dom/xul/nsXULPrototypeCache.cpp
--- a/dom/xul/nsXULPrototypeCache.cpp
+++ b/dom/xul/nsXULPrototypeCache.cpp
@@ -502,17 +502,17 @@ nsXULPrototypeCache::BeginCaching(nsIURI
 
     // Get the chrome directory to validate against the one stored in the
     // cache file, or to store there if we're generating a new file.
     nsCOMPtr<nsIFile> chromeDir;
     rv = NS_GetSpecialDirectory(NS_APP_CHROME_DIR, getter_AddRefs(chromeDir));
     if (NS_FAILED(rv))
         return rv;
     nsAutoCString chromePath;
-    rv = chromeDir->GetNativePath(chromePath);
+    rv = chromeDir->GetPersistentDescriptor(chromePath);
     if (NS_FAILED(rv))
         return rv;
 
     // XXXbe we assume the first package's locale is the same as the locale of
     // all subsequent packages of cached chrome URIs....
     nsAutoCString package;
     rv = aURI->GetHost(package);
     if (NS_FAILED(rv))