Bug 1428258 - Stop using GetNativePath in chrome/. r?mayhemer draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sun, 17 Dec 2017 23:56:09 +0900
changeset 757045 d2793a397fa61d90b4916ee026ff0a6a33a44fd3
parent 757019 f60cfdc81e946cf052cc29b8beae7c50613a3039
child 757046 2119718567341aa84e7a45308953edfadb6ca872
push id99632
push userVYV03354@nifty.ne.jp
push dateMon, 19 Feb 2018 17:31:15 +0000
reviewersmayhemer
bugs1428258
milestone60.0a1
Bug 1428258 - Stop using GetNativePath in chrome/. r?mayhemer MozReview-Commit-ID: EhsuLxIA1zj
chrome/nsChromeProtocolHandler.cpp
--- a/chrome/nsChromeProtocolHandler.cpp
+++ b/chrome/nsChromeProtocolHandler.cpp
@@ -166,19 +166,18 @@ nsChromeProtocolHandler::NewChannel2(nsI
     nsCOMPtr<nsIFileChannel> fileChan(do_QueryInterface(result));
     if (fileChan) {
         nsCOMPtr<nsIFile> file;
         fileChan->GetFile(getter_AddRefs(file));
 
         bool exists = false;
         file->Exists(&exists);
         if (!exists) {
-            nsAutoCString path;
-            file->GetNativePath(path);
-            printf("Chrome file doesn't exist: %s\n", path.get());
+            printf("Chrome file doesn't exist: %s\n",
+                   file->HumanReadablePath().get());
         }
     }
 #endif
 
     // Make sure that the channel remembers where it was
     // originally loaded from.
     rv = aLoadInfo->SetResultPrincipalURI(savedResultPrincipalURI);
     NS_ENSURE_SUCCESS(rv, rv);