Bug 1831046 - Fix test_file_put_deleted.html failure when IDB uses the private repository; r=hsingh

Differential Revision: https://phabricator.services.mozilla.com/D176991
This commit is contained in:
Jan Varga 2023-05-03 19:49:32 +00:00
Родитель 0fee573d61
Коммит 278f7a5a30
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -83,7 +83,7 @@
// (We want to chop off the profile root and the resulting path component
// must not start with a directory separator.)
let fileRelPath =
fileFullPath.substring(fileFullPath.search(/[/\\]storage[/\\]default(?:-private)?[/\\]/) + 1);
fileFullPath.substring(fileFullPath.search(/[/\\]storage[/\\](default|private)[/\\]/) + 1);
info("trying to delete: " + fileRelPath);
// by using the existing SpecialPowers mechanism to create files and clean
// them up. We clobber our existing content, then trigger deletion to