# Chrome --disable-features: multiple flags, one wins

> Chromium reads only the last --disable-features on its command line. One extra flag silently re-enabled everything we turn off, so now we merge them.

Source: https://mosaicbrowser.com/blog/disable-features-merge

## One pasted --disable-features deleted all of ours

Chromium reads only the last --disable-features on its command line. One extra flag silently re-enabled everything we turn off, so now we merge them.

![One pasted flag, and every feature we turn off came back](https://mosaicbrowser.com/covers/disable-features-merge.webp)

If you pass `--disable-features` to Chrome more than once, only the last one counts. Chromium keeps a single value per switch, so a second `--disable-features=X` does not add X to the list: it replaces the list. We knew that, wrote it in a comment, and still shipped a launcher where one extra flag from the operator silently switched back on every feature Mosaic turns off.

## The comment that named the hazard

Mosaic builds its launch arguments in one function, and that function sends one `--disable-features=` carrying everything we turn off: `IsolateOrigins`, `site-per-process`, `Translate`, `OptimizationHints`, `MediaRouter`, `DialMediaRouteProvider`, `AutofillServerCommunication`, and both password-manager services. Directly above it sat a comment: *"Chromium honours only the LAST --disable-features it is given, so every feature we want off has to travel in one switch."*

The comment was correct. The bug was in a different file.

A profile can carry extra launch arguments of its own, the `extraArgs` field, set in the profile editor, the REST API or MCP. The launcher pushed those after ours. So a profile with `--disable-features=NetworkPrediction` in its extra arguments launched with two `--disable-features` switches, Chromium kept the second, and the whole Mosaic list was gone. The browser started normally. The profile looked configured. Nothing said a word.

![Mosaic's API page with a Playwright example that starts a profile and attaches to it](https://mosaicbrowser.com/shots/api-automation.png)
*Profiles started from a script use the same launcher*

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)

## How we found it

Not from a symptom. We were reading another tool's automation setup for a feature request, and its flag set included `--disable-features=NetworkPrediction`. Adding that one flag to a profile would have quietly undone a list we depend on. We had made the same mistake once before with `--blink-settings`, a different switch with the same last-wins behaviour, and the earlier lesson had been written as a note about that one switch rather than about the mechanism.

## Multiple --disable-features flags, and the switches like it

Most Chromium switches are last-wins, and for most of them that is what you want. If an operator passes `--window-position`, they mean to override ours, and they should.

Four are different, because their value is a comma-separated set, and a second occurrence deletes members rather than overriding a setting:

- `--disable-features`
- `--enable-features`
- `--enable-blink-features`
- `--disable-blink-features`

For these, "the last one wins" almost never matches what the person typing the second flag meant. They meant "also this".

## What the launcher does now

The four set-valued switches are merged instead of appended. The operator's values are folded into ours: ours first, duplicates removed, order kept stable. A feature we turn off stays off even if the operator names it again, and two launches of the same profile produce the same command line, because a flag order that varies between launches is a difference a careful observer could notice.

Everything outside those four still passes through as last-wins, on purpose. And the merge is not silent: the profile's browser log gets a line saying the operator's `--disable-features` was merged into Mosaic's own rather than replacing it.

One guard sits after the merge. A few flags keep the browser away from the macOS login keychain, which would otherwise raise a system prompt. Those are re-applied last, after the operator's arguments, so no extra argument can turn that prompt back on.

## Two checks, both seen to fail

`check:merged-switches` runs the real fault. With the old append restored, it counts the `--disable-features` switches leaving the process and reports `got 2 / want 1`. With the merge in place it reports one.

The change also tripped a second check, `check:keychain`, which had asserted the literal source line that pushed the extra arguments. That assertion was standing for two facts at once. It is now two assertions: the merge takes the filtered list, and the keychain flags go on last. Re-ordering them makes it fail, which we checked rather than assumed.

## If you launch Chrome yourself

A Puppeteer or Playwright script that adds its own `--disable-features` beside a default list has the same fault, and so does a shell alias that someone extended. The fix is the one we made: `--disable-features=Translate,MediaRouter,NetworkPrediction` as one switch, never three. Where two tools each contribute a list, join the lists before launch.

To see what a running browser actually got, open `chrome://version` and read the Command Line row. If `--disable-features` appears twice there, the first one is doing nothing. Then check the feature itself rather than the row, because Chromium accepts an overridden switch, and an unknown one, without a warning or a log line.

That last point is why we measure switches through the browser rather than trusting a command line. One test config that unbranded Chromium switches on, and one flag that turns it off, is in [twenty APIs Chrome doesn't have](https://mosaicbrowser.com/blog/twenty-apis-chrome-lacks). A flag that changed what a site saw depending on launch order is in [a fingerprint that depended on launch order](https://mosaicbrowser.com/blog/user-agent-launch-order). The flags Mosaic sends to its own engine, and why each value lives inside the engine, are on the [engine page](https://mosaicbrowser.com/features/engine).

## Questions

### Can I pass --disable-features more than once to Chrome?

You can, but only the last one counts. Chromium keeps one value per switch, so an earlier --disable-features is replaced rather than added to. Put every feature in one switch, separated by commas.

### How do I disable several Chrome features at once?

List them in a single switch: --disable-features=FeatureA,FeatureB,FeatureC. The same applies to --enable-features, --enable-blink-features and --disable-blink-features.

### How do I check which flags Chrome actually started with?

Open chrome://version in that browser. The Command Line row prints the full command line, so two --disable-features entries are visible there even though only one of them takes effect.

### What happens if I add --disable-features to a Mosaic profile?

Your values are added to Mosaic's own, ours first, duplicates removed, in a stable order. The browser log for that launch notes that the two were merged rather than replaced.

## Related

[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.

[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.

[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.

[How to change the user agent in Chrome, and what it breaks](https://mosaicbrowser.com/guides/change-user-agent-in-chrome): How to change the user agent in Chrome with DevTools, a launch flag or an extension, and why none of them changes the client hints to match.

[Chromium vs Chrome: same source, different browser](https://mosaicbrowser.com/glossary/chromium-vs-chrome): Chromium is the open-source browser project; Chrome is Google's build of it, with codecs, keys and components Chromium lacks. A page can tell them apart.

[A top-level call that killed every panel of our popup](https://mosaicbrowser.com/blog/top-level-call-killed-the-popup): Our popup opened a panel before that panel's const existed. The ReferenceError stopped the rest of the script, so full screen was blank from every tab.

[Headless is not a way to hide, it is a way to be seen](https://mosaicbrowser.com/blog/headless-is-a-signal): Headless Chrome names itself HeadlessChrome in its user agent and drops the real GPU. Why our background work runs headed, off-screen, instead.



## 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.
