Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions features/ua-ch-brands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_meta": {
"description": "User agent client hint brands for the browser JavaScript API."
},
"state": "disabled",
"exceptions": []
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const featuresToIncludeTempUnprotectedExceptions = [
'trackingCookies1p',
'trackingCookies3p',
'trackingParameters',
'uaChBrands',
'unprotectedTemporary',
'webCompat',
];
Expand Down
32 changes: 32 additions & 0 deletions overrides/windows-override.json
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,38 @@
"clientBrandHint": {
"state": "enabled"
},
"uaChBrands": {
"state": "enabled",
"settings": {
"additionalCheck": "disabled",
"conditionalChanges": [
{
"condition": {
"internal": true
},
"patchSettings": [
{
"op": "replace",
"path": "/additionalCheck",
"value": "enabled"
}
]
},
{
"condition": {
"preview": true
},
"patchSettings": [
{
"op": "replace",
"path": "/additionalCheck",
"value": "enabled"
}
]
}
]
}
},
"privacyPro": {
"state": "enabled",
"features": {
Expand Down
2 changes: 2 additions & 0 deletions schema/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { Taskbar } from './features/taskbar';
import { AppHealth } from './features/appHealth';
import { ElementHidingFeature } from './features/element-hiding';
import { RequestBlocklistFeature } from './features/request-blocklist';
import { UaChBrandsFeature } from './features/ua-ch-brands';
import { UrlPredictorFeature } from './features/url-predictor';

export { WebCompatSettings } from './features/webcompat';
Expand Down Expand Up @@ -73,6 +74,7 @@ export type ConfigV5<VersionType> = {
customUserAgent?: CustomUserAgentFeature<VersionType>;
elementHiding?: ElementHidingFeature<VersionType>;
requestBlocklist?: RequestBlocklistFeature<VersionType>;
uaChBrands?: UaChBrandsFeature<VersionType>;
urlPredictor?: UrlPredictorFeature<VersionType>;
};
unprotectedTemporary: SiteException[];
Expand Down
10 changes: 10 additions & 0 deletions schema/features/ua-ch-brands.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { CSSInjectFeatureSettings, Feature } from '../feature';

type StateToggle = 'enabled' | 'disabled';

type UaChBrandsSettings = CSSInjectFeatureSettings<{
filterWebView2?: StateToggle;
overrideEdge?: StateToggle;
}>;

export type UaChBrandsFeature<VersionType> = Feature<UaChBrandsSettings, VersionType>;
Loading