forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nimbus.fml.yaml
732 lines (706 loc) · 24.5 KB
/
nimbus.fml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
---
channels:
- developer
- beta
- release
features:
mr2022:
description: Features for MR 2022.
variables:
sections-enabled:
description: "This property provides a lookup table of whether or not the given section should be enabled."
type: MR2022Section
default:
{
"onboarding-first-run-flow": true,
"onboarding-upgrade-flow": true,
"sync-cfr": true,
"jump-back-in-cfr-update": true,
"toolbar-cfr-update": true,
"wallpaper-onboarding-sheet": true,
}
general-app-features:
description: The feature that contains feature flags for the entire application
variables:
pull-to-refresh:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": true
}
report-site-issue:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": false
}
shake-to-restore:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": false
}
defaults:
- channel: beta
value: {
"pull-to-refresh": {
"status": true
},
"report-site-issue": {
"status": true
},
"shake-to-restore": {
"status": true
}
}
- channel: developer
value: {
"pull-to-refresh": {
"status": true
},
"report-site-issue": {
"status": true
},
"shake-to-restore": {
"status": true
}
}
start-at-home-feature:
description: The controls for Start at Home feature
variables:
setting:
description: "This property provides a default setting for the startAtHomeFeature"
type: StartAtHome
default: after-four-hours
defaults:
- channel: beta
value: {
"setting": after-four-hours
}
- channel: developer
value: {
"setting": after-four-hours
}
onboarding-feature:
description: The feature that controls whether to show or not Upgrade onboarding
variables:
upgrade-flow:
description: >
If true, we show the Upgrade onboarding screen when the user upgrades the version.
type: Boolean
default: false
first-run-flow:
description: >
If true, we show the new Onboarding screen when the user for v106 version.
type: Boolean
default: false
defaults:
- channel: beta
value: {
"upgrade-flow": true,
"first-run-flow": true
}
- channel: developer
value: {
"upgrade-flow": true,
"first-run-flow": true
}
spotlight-search:
description: Add pages as items findable with Spotlight.
variables:
enabled:
description: If this is true, then on each page load adds a new item to Spotlight.
type: Boolean
default: false
searchable-content:
type: Option<PageContent>
default: text-excerpt
description: >
The text content that is made searchable.
If this is `null` then no additional content is used, and only the title and URL will be used.
icon-type:
type: Option<IconType>
default: letter
description: >
The icon that is displayed next to the item in the search results.
If this is `null`, then no icon is displayed.
keep-for-days:
type: Option<Int>
default: null
description: >
Number of days to keep the item before automatic deletion.
If this is left `null`, then it is left to iOS's default.
defaults:
- value:
enabled: false
- channel: developer
value:
enabled: true
icon-type: screenshot
search:
description: >
Configuring the functionality to do with search.
This will be separated into smaller sub-features in later releases.
variables:
awesome-bar:
type: AwesomeBar
description: Configuring the awesome bar.
default: {}
defaults:
- value:
awesome-bar:
use-page-content: false
search-highlights: false
position:
is-position-feature-enabled: true
is-bottom: true
- channel: developer
value:
awesome-bar:
search-highlights: true
position:
is-position-feature-enabled: true
is-bottom: false
- channel: beta
value:
awesome-bar:
search-highlights: true
position:
is-position-feature-enabled: true
is-bottom: false
homescreenFeature:
description: The homescreen that the user goes to when they press home or new tab.
variables:
sections-enabled:
description: >
This property provides a lookup table of whether or not the given section should be enabled.
If the section is enabled, it should be toggleable in the settings screen, and on by default.
type: Map<HomeScreenSection, Boolean>
default:
{
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": true
}
sponsored-tiles:
description: >
This property defines the sponsored tile feature on the
homepage, which is not a section therein.
type: SponsoredTiles
default:
{
"status": true,
"max-number-of-tiles": 2
}
pocket-sponsored-stories:
description: >
This property defines whether pocket sponsored
stories appear on the homepage.
type: Boolean
default: false
jump-back-in-synced-tab:
description: >
This property defines whether the synced tab card
appears on the homepage in the jump back in section.
type: Boolean
default: true
defaults:
- channel: developer
value: {
"sections-enabled": {
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": true
},
"sponsored-tiles": {
"status": true,
"max-number-of-tiles": 2
},
"wallpaper-feature": {
"status": true
},
"pocket-sponsored-stories": true,
"jump-back-in-synced-tab": true
}
- channel: beta
value: {
"sections-enabled": {
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": true
},
"sponsored-tiles": {
"status": true,
"max-number-of-tiles": 1
},
"wallpaper-feature": {
"status": true
},
"pocket-sponsored-stories": false,
"jump-back-in-synced-tab": true
}
search-term-groups-feature:
description: The feature that controls whether or not search term groups are enabled.
variables:
grouping-enabled:
description: "This property provides a lookup table of whether or not the given grouping should be enabled."
type: Map<SearchTermGroups, Boolean>
default:
{
"history-groups": true,
"tab-tray-groups": false,
}
defaults:
- channel: beta
value: {
"grouping-enabled": {
"history-groups": true,
"tab-tray-groups": true,
}
}
- channel: developer
value: {
"grouping-enabled": {
"history-groups": true,
"tab-tray-groups": true,
}
}
tabTrayFeature:
description: The tab tray screen that the user goes to when they open the tab tray.
variables:
sections-enabled:
description: "This property provides a lookup table of whether or not the given section should be enabled.
If the section is enabled, it should be toggleable in the settings screen, and on by default."
type: Map<TabTraySection, Boolean>
default:
{
"inactive-tabs": true,
}
contextual-hint-feature:
description: This set holds all features pertaining to contextual hints.
variables:
features-enabled:
description: This property provides a lookup table of whether specific contextual hints are enabled.
type: Map<ContextualHint, Boolean>
default:
{
"jump-back-in-synced-tab-contextual-hint": false
}
hint-copy:
description: This set allows us to experiment with changing hint descriptions.
type: HintCopy
default: {
"jump-back-in": false,
"toolbar": false
}
defaults:
- channel: developer
value: {
"features-enabled": {
"jump-back-in-synced-tab-contextual-hint": true
},
"hint-copy": {
"jump-back-in": true,
"toolbar": true
}
}
- channel: beta
value: {
"features-enabled": {
"jump-back-in-synced-tab-contextual-hint": true
},
"hint-copy": {
"jump-back-in": true,
"toolbar": true
}
}
messaging:
description: >
Configuration for the messaging system.
In practice this is a set of growable lookup tables for the
message controller to piece together.
variables:
message-under-experiment:
description: Id or prefix of the message under experiment.
type: Option<String>
default: null
messages:
description: A growable collection of messages, where the Key is the message identifier and the value is its associated MessageData.
type: Map<String, MessageData>
default: {}
triggers:
description: >
A collection of out the box trigger
expressions. Each entry maps to a
valid JEXL expression.
type: Map<String, String>
default: {}
styles:
description: >
A map of styles to configure message
appearance.
type: Map<String, StyleData>
default: {}
actions:
type: Map<String, String>
description: A growable map of action URLs.
default: {}
on-control:
type: ControlMessageBehavior
description: What should be displayed when a control message is selected.
default: show-next-message
defaults:
- value:
triggers:
USER_RECENTLY_INSTALLED: days_since_install < 7
USER_RECENTLY_UPDATED: days_since_update < 7 && days_since_install != days_since_update
USER_TIER_ONE_COUNTRY: ('US' in locale || 'GB' in locale || 'CA' in locale || 'DE' in locale || 'FR' in locale)
USER_EN_SPEAKER: "'en' in locale"
USER_DE_SPEAKER: "'de' in locale"
USER_FR_SPEAKER: "'fr' in locale"
DEVICE_ANDROID: os == 'Android'
DEVICE_IOS: os == 'iOS'
I_AM_DEFAULT_BROWSER: "is_default_browser"
I_AM_NOT_DEFAULT_BROWSER: "is_default_browser == false"
SUPPORTS_DEFAULT_BROWSER: os_version|versionCompare('14.!') >= 0
ALWAYS: "true"
NEVER: "false"
actions:
OPEN_SETTINGS: ://deep-link?url=settings/general
OPEN_SETTINGS_NEW_TAB: ://deep-link?url=settings/newtab
OPEN_SETTINGS_HOMESCREEN: ://deep-link?url=settings/homepage
OPEN_SETTINGS_WALLPAPERS: ://deep-link?url=settings/wallpaper
OPEN_SETTINGS_EMAIL: ://deep-link?url=settings/mailto
OPEN_SETTINGS_SEARCH_ENGINE: ://deep-link?url=settings/search
OPEN_SETTINGS_PRIVACY: ://deep-link?url=settings/clear-private-data
OPEN_SETTINGS_FXA: ://deep-link?url=settings/fxa
OPEN_SETTINGS_THEME: ://deep-link?url=settings/theme
VIEW_BOOKMARKS: ://deep-link?url=homepanel/bookmarks
VIEW_TOP_SITES: ://deep-link?url=homepanel/top-sites
VIEW_READING_LIST: ://deep-link?url=homepanel/reading-list
VIEW_HISTORY: ://deep-link?url=homepanel/history
VIEW_DOWNLOADS: ://deep-link?url=homepanel/downloads
ENABLE_PRIVATE_BROWSING: ://deep-link?url=homepanel/new-private-tab
MAKE_DEFAULT_BROWSER: ://deep-link?url=default-browser/system-settings
MAKE_DEFAULT_BROWSER_WITH_TUTORIAL: ://deep-link?url=default-browser/tutorial
styles:
FALLBACK:
priority: 40
max-display-count: 20
DEFAULT:
priority: 50
max-display-count: 5
PERSISTENT:
priority: 50
max-display-count: 20
SURVEY:
priority: 55
max-display-count: 10
WARNING:
priority: 60
max-display-count: 10
URGENT:
priority: 100
max-display-count: 10
messages:
default-browser:
title: Default Browser/DefaultBrowserCard.Title
text: Default Browser/DefaultBrowserCard.Description
action: "MAKE_DEFAULT_BROWSER_WITH_TUTORIAL"
trigger: ["I_AM_NOT_DEFAULT_BROWSER", "SUPPORTS_DEFAULT_BROWSER"]
style: "FALLBACK"
# Use string interpolation because $TABLE_NAME/$KEY doesn't exist in en.lproj/Default Browser.strings
button-label: \(String.FirefoxHomepage.HomeTabBanner.EvergreenMessage.HomeTabBannerButton)
wallpaper-feature:
description: This property defines the configuration for the wallpaper feature
variables:
configuration:
description: This property defines the configuration for the wallpaper feature
type: WallpaperConfiguration
default:
{
"status": true,
"version": v1,
}
onboarding-sheet:
description: This property defines whether the wallpaper onboarding is shown or not
type: Boolean
default: false
defaults:
- channel: beta
value: {
"configuration": {
"status": true,
"version": v1,
},
"onboarding-sheet": false
}
- channel: developer
value: {
"configuration": {
"status": true,
"version": v1,
},
"onboarding-sheet": true
}
types:
objects:
MR2022Section:
description: "The configuration for the MR 2022 feature"
fields:
onboarding-first-run-flow:
type: Boolean
description: Whether or not the feature is enabled
default: false
onboarding-upgrade-flow:
type: Boolean
description: Whether or not the feature is enabled
default: false
sync-cfr:
type: Boolean
description: Whether or not the feature is enabled
default: false
jump-back-in-cfr-update:
type: Boolean
description: Whether or not the feature is enabled
default: false
toolbar-cfr-update:
type: Boolean
description: Whether or not the feature is enabled
default: false
wallpaper-onboarding-sheet:
type: Boolean
description: Whether or not the feature is enabled
default: false
GeneralFeature:
description: "The configuration for the a feature that can be enabled or disabled"
fields:
status:
type: Boolean
description: Whether or not the feature is enabled
default: false
HintCopy:
description: The hint and its associated description text.
fields:
jump-back-in:
description: If true, we show the new copy for the hint description.
type: Boolean
default: false
toolbar:
description: If true, we show the new copy for the hint description.
type: Boolean
default: false
AwesomeBar:
description: A configuration option for the awesome bar. Part of the `search` feature.
fields:
min-search-term:
description: The minimum number of characters that the user types before searching in the page.
type: Int
default: 3
use-page-content:
description: Search in the open tab's text content when typing.
type: Boolean
default: false
search-highlights:
description: "Whether or not search highlights are enabled"
type: Boolean
default: false
position:
description: >
This property defines whether or not the feature is
enabled, and the position of the search bar
type: SearchBarPositionFeature
default:
is-position-feature-enabled: true
is-bottom: true
SearchBarPositionFeature:
description: "The configuration for the bottom search bar on the homescreen"
fields:
is-position-feature-enabled:
type: Boolean
description: Whether or not the feature is enabled
default: true
is-bottom:
type: Boolean
description: Whether or not the default position is at the bottom
default: true
SponsoredTiles:
description: "The configuration for the sponsored tile on the homescreen"
fields:
status:
type: Boolean
description: Whether or not the feature is enabled
default: false
max-number-of-tiles:
type: Int
description: The maximum number of sponsored tiles a user can see
default: 2
MessageData:
description: >
An object to describe a message. It uses human
readable strings to describe the triggers, action and
style of the message as well as the text of the message
and call to action.
fields:
action:
type: String
description: >
A URL of a page or a deeplink.
This may have substitution variables in.
# This should never be defaulted.
default: ""
title:
type: Option<Text>
description: "The title text displayed to the user"
default: null
text:
type: Text
description: "The message text displayed to the user"
# This should never be defaulted.
default: ""
is-control:
type: Boolean
description: "Indicates if this message is the control message, if true shouldn't be displayed"
default: false
button-label:
type: Option<Text>
description: >
The text on the button. If no text
is present, the whole message is clickable.
default: null
style:
type: String
description: >
The style as described in a
`StyleData` from the styles table.
default: DEFAULT
trigger:
type: List<String>
description: >
A list of strings corresponding to
targeting expressions. The message will be
shown if all expressions `true`.
default: []
surface:
type: MessageSurfaceId
description: Each message will tell us the surface it is targeting with this.
# To start, we default to the new-tab-card
default: new-tab-card
StyleData:
description: >
A group of properities (predominantly visual) to
the describe style of the message.
fields:
priority:
type: Int
description: >
The importance of this message.
0 is not very important, 100 is very important.
default: 50
max-display-count:
type: Int
description: >
How many sessions will this message be shown to the user
before it is expired.
default: 5
WallpaperConfiguration:
description: "The configuration for the a feature that can be enabled or disabled"
fields:
status:
type: Boolean
description: Whether or not the feature is enabled
default: false
version:
type: WallpaperVariantVersion
description: Which version of the wallpaper sytem to use
default: legacy
enums:
IconType:
description: The icon that will be added to the item in the device's search engine.
variants:
screenshot:
description: A screenshot of the page at load time.
favicon:
description: The favicon of the page
letter:
description: An icon generated from the first letter of the base domain.
PageContent:
description: The page content that will be added as an item in the device's search engine.
variants:
text-excerpt:
description: Only use the first paragraph
text-content:
description: Use all the page as text
html-content:
description: Use all the page as HTML
MessageSurfaceId:
description: >
For messaging, we would like to have a message tell us which surface its associated with.
This is a label that matches across both Android and iOS.
variants:
new-tab-card:
description: This is the card that appears at the top on the Firefox Home Page.
Unknown:
description: A message has NOT declared its target surface.
StartAtHome:
description: The identifiers for the different types of options for StartAtHome
variants:
disabled:
description: App always opens to the last tab the user was on.
after-four-hours:
description: App opens to a new homepage tab after four hours of inactivity
always:
description: App opens to a new homepage tab after five minutes of inactiviny
HomeScreenSection:
description: The identifiers for the sections of the homescreen.
variants:
top-sites:
description: The frecency and pinned sites.
recently-saved:
description: The sites the user has bookmarked recently.
jump-back-in:
description: The tabs the user was looking immediately before being interrupted.
recent-explorations:
description: The tab groups
pocket:
description: The pocket section. This should only be available in the US.
TabTraySection:
description: The identifiers for the sections of the tab tray.
variants:
inactive-tabs:
description: Tabs that have been automatically closed for the user.
ContextualHint:
description: The identifiers for a individual contextual hints.
variants:
jump-back-in-synced-tab-contextual-hint:
description: The contextual hint bubble that appears to indicate a synced tab has appeared within the Jump Back In section.
SearchTermGroups:
description: The identifiers for the different types of search term groups.
variants:
history-groups:
description: Grouping for items in History and RecentlyVisited
tab-tray-groups:
description: Grouping for items in the Tab Tray and in JumpBackIn
ControlMessageBehavior:
description: An enum to influence what should be displayed when a control message is selected.
variants:
show-next-message:
description: The next eligible message should be shown.
show-none:
description: The surface should show no message.
WallpaperVariantVersion:
description: An enum to identify which version of the wallpaper system to use
variants:
legacy:
description: The legacy wallpaper version
v1:
description: The 2022 MR version