Bug 1579408 - Fix path manipulation in about support. r=Gijs

Use file.append() to create the desired path in a platform agnostic way.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alex Chronopoulos 2019-09-09 16:11:23 +00:00
Родитель 80421ff6e7
Коммит 92d843f5ee
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -872,7 +872,8 @@ var snapshotFormatters = {
"resource://gre/modules/kvstore.jsm" "resource://gre/modules/kvstore.jsm"
); );
let currProfDir = Services.dirsvc.get("ProfD", Ci.nsIFile); let currProfDir = Services.dirsvc.get("ProfD", Ci.nsIFile);
let path = currProfDir.path + "/mediacapabilities"; currProfDir.append("mediacapabilities");
let path = currProfDir.path;
function enumerateDatabase(name) { function enumerateDatabase(name) {
KeyValueService.getOrCreate(path, name) KeyValueService.getOrCreate(path, name)