Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion images/chromium-headless/image/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if [ -z "${CHROMIUM_FLAGS:-}" ]; then
--disable-crash-reporter \
--disable-crashpad \
--disable-dev-shm-usage \
--disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate \
--disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,WebAuthenticationConditionalUI \
--disable-field-trial-config \
--disable-gcm-registration \
--disable-gpu \
Expand Down
1 change: 1 addition & 0 deletions server/cmd/chromium-launcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func main() {
"--user-data-dir=/home/kernel/user-data",
"--password-store=basic",
"--no-first-run",
"--disable-features=WebAuthenticationConditionalUI",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded --disable-features silently overridden by later flag

Medium Severity

Chromium uses last-one-wins semantics for duplicate --disable-features flags. The hardcoded --disable-features=WebAuthenticationConditionalUI in chromiumArgs is placed before final is appended (line 70), so any --disable-features entry in final silently overrides it. In headless mode this happens every time — wrapper.sh's comprehensive --disable-features list lands in final and replaces the hardcoded one. It works today only because wrapper.sh independently added WebAuthenticationConditionalUI. If the two lists ever diverge, or if headful runtime flags introduce a --disable-features, the hardcoded flag labeled "flags we send no matter what" will have no effect.

Additional Locations (1)

Fix in Cursor Fix in Web

}
if *headless {
chromiumArgs = append([]string{"--headless=new"}, chromiumArgs...)
Expand Down
Loading