# Chromium ignores an unknown command line switch

> Chromium accepts an unknown command line switch without a word. Two of our WebRTC flags never existed, and a renamed feature did nothing for months.

Source: https://mosaicbrowser.com/blog/silently-ignored-flags

## A silently ignored flag looks exactly like a working one

Chromium accepts an unknown command line switch without a word. Two of our WebRTC flags never existed, and a renamed feature did nothing for months.

![Chromium takes a switch it does not know in silence, beside a screenshot: a Mosaic leak test: every surface a site reads, checked from inside the profile page](https://mosaicbrowser.com/covers/silently-ignored-flags.webp)

Chromium does nothing with an unknown command line switch: no error, no warning, no log line. It starts, it browses, and the switch you typed is simply not read. The same goes for a feature name in `--enable-features` that the build does not have. So a misspelt flag, a retired flag and a flag that never existed all produce a browser that looks configured. We shipped three of them before we started checking names against the binary.

## Two WebRTC switches that were never switches

The WebRTC setting on a Mosaic profile had never been measured against a real leak test with a proxy attached. When we did measure it, the protection itself worked and the flags around it did not. We ran `strings` on three engine binaries, ours, an open-source fork we were testing, and the machine's own Google Chrome, and counted each switch name:

```
webrtc-ip-handling-policy          ours 1   fork 2   stock 2
force-webrtc-ip-handling-policy    ours 0   fork 0   stock 0
webrtc-ip                          ours 0   fork 0   stock 0

```

Two of the three names appear in no binary at all. Chromium had accepted both without a word since the day they were written. The second one hurt, because `--webrtc-ip` was the whole implementation of an editor option that promised to replace the address with the proxy's. Nothing replaced anything.

We did not write a replacement, because there is nothing for it to do. What protects a proxied profile is that no address is gathered around the proxy in the first place. With a proxy attached, Mosaic now sends `--webrtc-ip-handling-policy=disable_non_proxied_udp` (a privacy setting, on by default), and a fresh profile measured 0 candidates with `RTCPeerConnection` still present, the same as Google Chrome 152 with the same policy. A Chrome with no `RTCPeerConnection` at all is a browser that does not exist, so we stopped deleting it.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Fingerprints set inside the browser](https://mosaicbrowser.com/features/engine)

## A renamed feature that did nothing

The second case was a privacy setting meant to stop a page inside a profile from scanning ports on the computer it runs on. For a long time it pushed two real switches, `--block-new-web-contents` and `--restrict-gamepad-access`. They block popups and gamepads. Nothing blocked the network, and a page could reach `127.0.0.1`.

The first fix enabled the feature every guide still describes, Private Network Access, by its name `BlockInsecurePrivateNetworkRequests`. Chrome 152 had renamed the whole thing to Local Network Access. The old name read like a fix and did nothing. We found the rename by running `strings` on the Chrome framework binary and searching for the feature names it actually contains.

The real names did not hold either. With the Local Network Access checks on and their prompts denied, a `no-cors` fetch could still tell an open loopback port from a closed one. So we stopped relying on a mid-rollout feature and used a proxy auto-config file instead. It points every private and loopback destination at a proxy that is not listening, so the request never completes. Measured against an open and a closed port on the same machine:

```
stock Chrome, no PAC   open: resolved 4ms      closed: TypeError 1ms
our PAC                open: never resolves    closed: TypeError 1ms

```

The page can no longer read anything from a local port. The timing half is not closed: a closed port still fails fast, before any proxy is consulted, and an untouched Chrome on the same machine shows exactly the same timing. Because every stock Chrome does it, we leave it, and we write it down as a measured limit rather than a promise. Separately, Mosaic's local API now refuses any request whose `Sec-Fetch-Site` header is not `same-origin` or `none`. Browsers set that header and page script cannot forge it, so a web page gets a `403` and learns nothing.

![A Mosaic leak test with WebRTC, DNS, timezone, language and geolocation rows checked from inside a profile](https://mosaicbrowser.com/shots/leak-test.png)
*The leak test asks the browser, not the flag list*

## Checking a switch before trusting it

Three habits came out of this, and we now use all three on every switch the engine receives.

1. Search the binary for the name. `strings` on the framework is enough to tell whether anything in the build can read a switch or a feature.
2. Measure the browser, never the flag list. The probes that settled both cases drive a real profile and ask it what it can reach or what it gathers. A flag list only says what we sent.
3. Make the answer identical across the cases a page can compare. "Blocked" in a fetch's error handler is not enough when an open port and a closed one still differ.

The third habit matters most for a browser whose job is to look ordinary. A feature stock Chrome ships switched off can change other things a page reads, so turning one on as insurance can add a difference instead of removing one.

## Four places a switch can be lost

A switch that exists can still fail to arrive. Each fingerprint switch in our series has to be declared by the engine, forwarded by the browser process to the renderers where page code runs, read by the engine code that uses it, and sent by the launcher. Miss any one and the result is the same silence: a switch the browser accepts and never passes on reaches no page. Eight switches in our own series were once declared, forwarded and read by nothing. `check:chromium-switches` now walks all four for every switch, refuses one the launcher sends that the engine never declared, and runs in every build. Values like the User-Agent and client hints depend on this, which is how a single flag, sent or not sent depending on a cache, gave [one profile two identities](https://mosaicbrowser.com/blog/user-agent-launch-order).

The switches that change fingerprint values all belong to our own engine, [Tesseract Chrome](https://mosaicbrowser.com/features/engine), where each value is set inside the engine and read by every frame and worker alike. The WebRTC side of this, and how a page sees a real address go round a proxy, is in [what a WebRTC leak is](https://mosaicbrowser.com/glossary/webrtc-leak). And when a single test config changed twenty APIs at once, the fix was one switch, `--disable-field-trial-config`, verified the same way: [twenty APIs Chrome doesn't have](https://mosaicbrowser.com/blog/twenty-apis-chrome-lacks).

## Questions

### Does Chromium warn about an unknown command line switch?

No. Chromium reads the switches it knows and ignores the rest without an error, a log line or a change in behaviour. A misspelt or retired switch starts a browser that looks configured and is not.

### Does the same happen with --enable-features?

Yes. An --enable-features name that does not exist in the build is dropped quietly. We found this when Chrome 152 renamed Private Network Access to Local Network Access and the old feature name went on doing nothing.

### How do I check whether a Chromium switch exists?

Run strings on the browser binary or its framework and search for the switch name. If it is absent, nothing reads it. Then measure what the browser actually does with and without the switch, because a name that exists can still do something other than you expect.

### How does Mosaic catch a dropped switch?

A build check, check:chromium-switches, follows every fingerprint switch through the four places it can be lost (declared, forwarded to renderers, read, sent) and fails the build if one goes missing.

## Related

[An anti-detect browser with its own Chromium engine](https://mosaicbrowser.com/features/engine): Mosaic is an anti-detect browser with its own Chromium engine, Tesseract Chrome: stock Chromium source, with fingerprint values changed inside the engine.

[WebRTC leak: when a page finds the address behind your proxy](https://mosaicbrowser.com/glossary/webrtc-leak): A WebRTC leak is a page learning your real IP address through WebRTC's STUN requests, which can go around a proxy or VPN instead of through it.

[A fingerprint that depended on launch order](https://mosaicbrowser.com/blog/user-agent-launch-order): Chrome's --user-agent flag left Sec-CH-UA-Bitness empty, and a cache empty at every app start decided when we sent it. One profile wore two identities.

[Twenty APIs Chrome doesn't have: Chromium's field trials](https://mosaicbrowser.com/blog/twenty-apis-chrome-lacks): Unbranded Chromium runs its field-trial testing config at every launch. Against Chrome 153 that was 20 API differences, and one switch moved them all.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.





[A browser with no RTCPeerConnection doesn't exist](https://mosaicbrowser.com/blog/disabling-webrtc-is-a-tell): Deleting WebRTC leaves a Chrome no one runs. Zero candidates with the API still present is every machine on a UDP-blocked network, so that is what we ship.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
