Bug 1541508 - Use Services.env in gfx/ r=botond

Differential Revision: https://phabricator.services.mozilla.com/D160153
This commit is contained in:
Barret Rennie 2022-11-25 19:09:07 +00:00
parent 9c5e6dab31
commit d4bdebd62b
2 changed files with 2 additions and 6 deletions

View File

@ -121,9 +121,7 @@ async function test() {
}
function isOnChaosMode() {
const env = SpecialPowers.Cc["@mozilla.org/process/environment;1"]
.getService(SpecialPowers.Ci.nsIEnvironment);
return env.get("MOZ_CHAOSMODE");
return Services.env.get("MOZ_CHAOSMODE");
}
if (searchParams.get("input-type") == "native-key" &&

View File

@ -42,9 +42,7 @@ async function test() {
}
function isOnChaosMode() {
const env = SpecialPowers.Cc["@mozilla.org/process/environment;1"]
.getService(SpecialPowers.Ci.nsIEnvironment);
return env.get("MOZ_CHAOSMODE");
return Services.env.get("MOZ_CHAOSMODE");
}
if ((getPlatform() == "mac" || getPlatform() == "windows") &&