Also skip Brave: its P3A bar paints over the update shim window

Brave renders its own P3A privacy-notice bar ("Got it" / "Disable" /
"Learn more") at the top of the throwaway-profile window the posix shim
opens, cramped to unreadability at the shim's small size - the same
window-pollution class as Edge's MSA sync notice, and equally immune to
the throwaway --user-data-dir (#88682). Drop Brave from the candidates
on both platforms; Chrome and Chromium stay.

Covers #88682 on top of #88410
This commit is contained in:
liuhao1024
2026-08-18 06:20:33 +08:00
committed by Teknium
parent f329f9e40d
commit eb21740b06

View File

@@ -171,20 +171,22 @@ publish() { # terminal event -- the page must render it before teardown
find_browser() {
local c
# No Microsoft Edge, on purpose: Edge's OS-level Microsoft-account
# integration signs a fresh throwaway profile into the user's MSA and
# renders its own "syncing your data" notification — MSA email included —
# inside this window that is titled "Hermes" (#88410). The throwaway
# --user-data-dir below cannot block it; the other Chromium-family
# browsers carry no OS account integration into a fresh profile.
# No Microsoft Edge and no Brave, on purpose. Edge's OS-level
# Microsoft-account integration signs a fresh throwaway profile into the
# user's MSA and renders its own "syncing your data" notification — MSA
# email included — inside this window that is titled "Hermes" (#88410).
# Brave paints its own P3A privacy-notice bar over the progress page in
# the same window — cramped to unreadability at the shim's small size
# (#88682). The throwaway --user-data-dir below cannot block either; the
# remaining Chromium-family browsers carry no first-run chrome of their
# own into a fresh profile.
if [ "$(uname)" = "Darwin" ]; then
for c in "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
"/Applications/Chromium.app/Contents/MacOS/Chromium" \
"/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"; do
"/Applications/Chromium.app/Contents/MacOS/Chromium"; do
[ -x "$c" ] && { echo "$c"; return; }
done
else
for c in google-chrome google-chrome-stable chromium chromium-browser brave-browser; do
for c in google-chrome google-chrome-stable chromium chromium-browser; do
command -v "$c" 2>/dev/null && return
done
fi