This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
toolkit/components/messaging-system/targeting Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
15
15
FilterExpressions :
16
16
"resource://gre/modules/components-utils/FilterExpressions.jsm" ,
17
17
ClientEnvironment : "resource://normandy/lib/ClientEnvironment.jsm" ,
18
- ClientEnvironmentBase :
19
- "resource://gre/modules/components-utils/ClientEnvironment.jsm" ,
20
18
AppConstants : "resource://gre/modules/AppConstants.jsm" ,
21
19
} ) ;
22
20
@@ -58,10 +56,6 @@ const TargetingEnvironment = {
58
56
get platform ( ) {
59
57
return AppConstants . platform ;
60
58
} ,
61
-
62
- get os ( ) {
63
- return ClientEnvironmentBase . os ;
64
- } ,
65
59
} ;
66
60
67
61
class TargetingContext {
Original file line number Diff line number Diff line change @@ -243,15 +243,3 @@ add_task(async function test_default_targeting() {
243
243
) ;
244
244
}
245
245
} ) ;
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
- } ) ;
You can’t perform that action at this time.
0 commit comments