Bug 1504691 - Read certs from local and roaming on Windows. r=Felipe, a=jcristau
authorMichael Kaply <mozilla@kaply.com>
Thu, 08 Nov 2018 19:34:09 +0000
changeset 501217 23d0264564e5dd6a1ed4f9cce45188f7c60d28c2
parent 501216 c6949142e640b8d3727055053ee471b3eeb7d2e6
child 501218 5b355cd76cea5b71bd2affd16bcf6f258a5125eb
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe, jcristau
bugs1504691
milestone64.0
Bug 1504691 - Read certs from local and roaming on Windows. r=Felipe, a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D11360
browser/components/enterprisepolicies/Policies.jsm
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -139,18 +139,20 @@ var Policies = {
         setAndLockPref("security.enterprise_roots.enabled", param.ImportEnterpriseRoots);
       }
       if ("Install" in param) {
         (async () => {
           let dirs = [];
           let platform = AppConstants.platform;
           if (platform == "win") {
             dirs = [
-              // Ugly, but there is no official way to get %USERNAME\AppData\Local\Mozilla.
+              // Ugly, but there is no official way to get %USERNAME\AppData\Roaming\Mozilla.
               Services.dirsvc.get("XREUSysExt", Ci.nsIFile).parent,
+              // Even more ugly, but there is no official way to get %USERNAME\AppData\Local\Mozilla.
+              Services.dirsvc.get("DefProfLRt", Ci.nsIFile).parent.parent,
             ];
           } else if (platform == "macosx" || platform == "linux") {
             dirs = [
               // These two keys are named wrong. They return the Mozilla directory.
               Services.dirsvc.get("XREUserNativeManifests", Ci.nsIFile),
               Services.dirsvc.get("XRESysNativeManifests", Ci.nsIFile),
             ];
           }