Bug 1546326: Correctly detect missing directories on Windows. r=Gijs
authorDave Townsend <dtownsend@oxymoronical.com>
Tue, 23 Apr 2019 17:23:35 +0000
changeset 470533 9bc2f8e17d8062bd98fef67460ef0e74d5e0df17
parent 470532 6ed35343aea0f8d44fda91cafd752bd82df530ea
child 470534 7b326aa4930cad966e0a01d2d3d3d585d35002e2
push id83809
push usergijskruitbosch@gmail.com
push dateTue, 23 Apr 2019 17:24:06 +0000
treeherderautoland@9bc2f8e17d80 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1546326
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546326: Correctly detect missing directories on Windows. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D28514
toolkit/content/aboutProfiles.js
--- a/toolkit/content/aboutProfiles.js
+++ b/toolkit/content/aboutProfiles.js
@@ -55,17 +55,18 @@ function rebuildProfileList() {
     let isCurrentProfile = profile == currentProfile;
     let isInUse = isCurrentProfile;
     if (!isInUse) {
       try {
         let lock = profile.lock({});
         lock.unlock();
       } catch (e) {
         if (e.result != Cr.NS_ERROR_FILE_TARGET_DOES_NOT_EXIST &&
-            e.result != Cr.NS_ERROR_FILE_NOT_DIRECTORY) {
+            e.result != Cr.NS_ERROR_FILE_NOT_DIRECTORY &&
+            e.result != Cr.NS_ERROR_FILE_NOT_FOUND) {
           isInUse = true;
         }
       }
     }
     display({
       profile,
       isDefault: profile == defaultProfile,
       isCurrentProfile,