Skip to content

Commit

Permalink
Bug 1753369 - Use sync PathUtils directory getters on mainthread in s…
Browse files Browse the repository at this point in the history
…ervices/ r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D140137
  • Loading branch information
Barret Rennie committed Mar 10, 2022
1 parent fc94093 commit 3dbb1c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/fxaccounts/tests/xpcshell/test_loginmgr_storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ add_task(async function test_simple() {

// This should have stored stuff in both the .json file in the profile
// dir, and the login dir.
let profileDir = await PathUtils.getProfileDir();
let path = PathUtils.join(profileDir, "signedInUser.json");
let path = PathUtils.join(PathUtils.profileDir, "signedInUser.json");
let data = await CommonUtils.readJSON(path);

Assert.strictEqual(
Expand Down Expand Up @@ -190,8 +189,7 @@ add_task(async function test_MPLocked() {

// This should have stored stuff in the .json, and the login manager stuff
// will not exist.
let profileDir = await PathUtils.getProfileDir();
let path = PathUtils.join(profileDir, "signedInUser.json");
let path = PathUtils.join(PathUtils.profileDir, "signedInUser.json");
let data = await CommonUtils.readJSON(path);

Assert.strictEqual(
Expand Down

0 comments on commit 3dbb1c4

Please sign in to comment.