Commit 9e027945 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1504691 - Read certs from local and roaming on Windows. r=Felipe

Differential Revision: https://phabricator.services.mozilla.com/D11360

--HG--
extra : moz-landing-system : lando
parent 1a47a235
...@@ -144,8 +144,10 @@ var Policies = { ...@@ -144,8 +144,10 @@ var Policies = {
let platform = AppConstants.platform; let platform = AppConstants.platform;
if (platform == "win") { if (platform == "win") {
dirs = [ 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, 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") { } else if (platform == "macosx" || platform == "linux") {
dirs = [ dirs = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment