Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit c551dd4

Browse files
committed
Backed out changeset 195bf8b32fcb (bug 1691526) for xpcshell failures on test_targeting.js. CLOSED TREE
1 parent 9375c8b commit c551dd4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

toolkit/components/messaging-system/targeting/Targeting.jsm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
1515
FilterExpressions:
1616
"resource://gre/modules/components-utils/FilterExpressions.jsm",
1717
ClientEnvironment: "resource://normandy/lib/ClientEnvironment.jsm",
18-
ClientEnvironmentBase:
19-
"resource://gre/modules/components-utils/ClientEnvironment.jsm",
2018
AppConstants: "resource://gre/modules/AppConstants.jsm",
2119
});
2220

@@ -58,10 +56,6 @@ const TargetingEnvironment = {
5856
get platform() {
5957
return AppConstants.platform;
6058
},
61-
62-
get os() {
63-
return ClientEnvironmentBase.os;
64-
},
6559
};
6660

6761
class TargetingContext {

toolkit/components/messaging-system/targeting/test/unit/test_targeting.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,3 @@ add_task(async function test_default_targeting() {
243243
);
244244
}
245245
});
246-
247-
add_task(async function test_targeting_os() {
248-
const targeting = new TargetingContext();
249-
let res = await targeting.eval(
250-
"ctx.os.isWindows || ctx.os.isMac || ctx.os.isLinux"
251-
);
252-
Assert.ok(res, `Should detect a platform got: ${res}`);
253-
res = await targeting.eval(
254-
"(ctx.os.windowsVersion && ctx.os.windowsBuildNumber) || ctx.os.macVersion || ctx.os.darwinVersion"
255-
);
256-
Assert.ok(res, `Should detect platform version got: ${res}`);
257-
});

0 commit comments

Comments
 (0)