From e916b7adbce7a7ee29a4e4b8cab8804b07ce91e7 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Tue, 19 Mar 2024 17:28:50 -0700 Subject: [PATCH] flags: disable privacy sandbox dialog (#328) --- docs/chrome-flags-for-tools.md | 1 + src/flags.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/chrome-flags-for-tools.md b/docs/chrome-flags-for-tools.md index b47eb5974..a6c6db0bc 100644 --- a/docs/chrome-flags-for-tools.md +++ b/docs/chrome-flags-for-tools.md @@ -58,6 +58,7 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe * `--disable-external-intent-requests`: Disallow opening links in external applications * `--disable-features=GlobalMediaControls`: Hide toolbar button that opens dialog for controlling media sessions. * `--disable-features=ImprovedCookieControls`: Disables an improved UI for third-party cookie blocking in incognito mode. +* `--disable-features=PrivacySandboxSettings4`: Disables "Enhanced ad privacy in Chrome" dialog (if it wasn't disabled through other means). * `--disable-notifications`: Disables the Web Notification and the Push APIs. * `--disable-popup-blocking`: Disable popup blocking. `--block-new-web-contents` is the strict version of this. * `--disable-prompt-on-repost`: Reloading a page that came from a POST normally prompts the user. diff --git a/src/flags.ts b/src/flags.ts index 739e08646..775dea3f9 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -29,6 +29,8 @@ export const DEFAULT_FLAGS: ReadonlyArray = [ 'CertificateTransparencyComponentUpdater', // Disables autofill server communication. This feature isn't disabled via other 'parent' flags. 'AutofillServerCommunication', + // Disables "Enhanced ad privacy in Chrome" dialog (though as of 2024-03-20 it shouldn't show up if the profile has no stored country). + 'PrivacySandboxSettings4', ].join(','), // Disable all chrome extensions