mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1541508 - Use Services.env in gfx/ r=botond
Differential Revision: https://phabricator.services.mozilla.com/D160153
This commit is contained in:
parent
9c5e6dab31
commit
d4bdebd62b
@ -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" &&
|
||||
|
@ -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") &&
|
||||
|
Loading…
Reference in New Issue
Block a user