File tree Expand file tree Collapse file tree 6 files changed +42
-0
lines changed
Expand file tree Collapse file tree 6 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "_meta" : {
3+ "description" : " User agent client hint brands for the browser JavaScript API."
4+ },
5+ "state" : " disabled" ,
6+ "exceptions" : []
7+ }
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ const featuresToIncludeTempUnprotectedExceptions = [
144144 'trackingCookies1p' ,
145145 'trackingCookies3p' ,
146146 'trackingParameters' ,
147+ 'uaChBrands' ,
147148 'unprotectedTemporary' ,
148149 'webCompat' ,
149150] ;
Original file line number Diff line number Diff line change 25552555 "clientBrandHint" : {
25562556 "state" : " enabled"
25572557 },
2558+ "uaChBrands" : {
2559+ "state" : " enabled" ,
2560+ "settings" : {
2561+ "additionalCheck" : " disabled" ,
2562+ "conditionalChanges" : [
2563+ {
2564+ "condition" : [
2565+ { "internal" : true },
2566+ { "preview" : true }],
2567+ "patchSettings" : [
2568+ {
2569+ "op" : " replace" ,
2570+ "path" : " /additionalCheck" ,
2571+ "value" : " enabled"
2572+ }
2573+ ]
2574+ }
2575+ ]
2576+ }
2577+ },
25582578 "privacyPro" : {
25592579 "state" : " enabled" ,
25602580 "features" : {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { Taskbar } from './features/taskbar';
2424import { AppHealth } from './features/appHealth' ;
2525import { ElementHidingFeature } from './features/element-hiding' ;
2626import { RequestBlocklistFeature } from './features/request-blocklist' ;
27+ import { UaChBrandsFeature } from './features/ua-ch-brands' ;
2728import { UrlPredictorFeature } from './features/url-predictor' ;
2829
2930export { WebCompatSettings } from './features/webcompat' ;
@@ -73,6 +74,7 @@ export type ConfigV5<VersionType> = {
7374 customUserAgent ?: CustomUserAgentFeature < VersionType > ;
7475 elementHiding ?: ElementHidingFeature < VersionType > ;
7576 requestBlocklist ?: RequestBlocklistFeature < VersionType > ;
77+ uaChBrands ?: UaChBrandsFeature < VersionType > ;
7678 urlPredictor ?: UrlPredictorFeature < VersionType > ;
7779 } ;
7880 unprotectedTemporary : SiteException [ ] ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ type ConditionBlock = {
6565 minSupportedVersion ?: number ;
6666 maxSupportedVersion ?: number ;
6767 internal ?: boolean ;
68+ preview ?: boolean ;
6869 context ?: {
6970 top ?: boolean ;
7071 frame ?: boolean ;
Original file line number Diff line number Diff line change 1+ import { CSSInjectFeatureSettings , Feature , FeatureState } from '../feature' ;
2+
3+ type StateToggle = 'enabled' | 'disabled' ;
4+
5+ type UaChBrandsSettings = CSSInjectFeatureSettings < {
6+ filterWebView2 ?: StateToggle ;
7+ overrideEdge ?: StateToggle ;
8+ additionalCheck ?: FeatureState ;
9+ } > ;
10+
11+ export type UaChBrandsFeature < VersionType > = Feature < UaChBrandsSettings , VersionType > ;
You can’t perform that action at this time.
0 commit comments