# "--load-extension is not allowed" in Chrome 137: what works

> Chrome 137+ prints "--load-extension is not allowed in Google Chrome, ignoring". Chrome for Testing, Chromium and Extensions.loadUnpacked still load it.

Source: https://mosaicbrowser.com/blog/load-extension-removed

## --load-extension stopped working in Google Chrome

Chrome 137+ prints "--load-extension is not allowed in Google Chrome, ignoring". Chrome for Testing, Chromium and Extensions.loadUnpacked still load it.

![137: The switch Google's own Chrome now ignores, beside a screenshot: mosaic settings showing the installed Tesseract Chrome engine and its version](https://mosaicbrowser.com/covers/load-extension-removed.webp)

The message `--load-extension is not allowed in Google Chrome, ignoring.` means Chrome saw the switch and dropped it. From Chrome 137, Google-branded Chrome does not load unpacked extensions from the command line at all. The browser opens, the extension is missing, nothing fails, and that one line in stdout is the only evidence. Chromium and Chrome for Testing still honour the switch.

That last point is the interesting one. It is one more place where Google's Chrome and the open-source Chromium it is built from behave differently, in a way a script can see.

## Why --load-extension is not allowed in Google Chrome any more

The refusal is a few lines in `chrome/browser/extensions/extension_service.cc`, and it sits under `GOOGLE_CHROME_BRANDING`, the build flag that turns Chromium into Google Chrome. A branded build compiles the refusal in. An unbranded build never sees it. So the same source code produces two browsers, and only one of them listens to the switch.

Google gave security as the reason, and it fits a pattern: a switch that loads code into the browser is also a door for software that should not be there, and [Chrome 136 closed the debugging port on your default profile](https://mosaicbrowser.com/blog/chrome-136-remote-debugging) for the same kind of reason. Developers keep the switch in the builds made for testing.

## What does not bring it back

Two fixes are still being passed around, and we tried both.

1. `--disable-features=DisableLoadExtensionCommandLineSwitch`. For a while this feature flag kept the old behaviour. We ran `strings` over the framework binary of a branded Chrome 152 and the feature name is not in it, so disabling it disables nothing. The switch is still ignored.
2. Changing the update channel. We forced the channel to `dev` through `KSChannelID` in a cloned app bundle. The profile still came up with zero entries under `extensions.settings` in its `Secure Preferences`.

The refusal is unconditional in a branded build. There is no setting on the far side of it.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## What does work

For automated tests there are two honest routes.

The first is to test on a browser that still loads the folder: Chrome for Testing, which Puppeteer downloads by default, or a plain Chromium. If your CI already pins one of those, the change never reached you. If it launches the Chrome installed on the machine, it did.

The second is the DevTools protocol. `Extensions.loadUnpacked` takes a directory and returns the extension's id. On branded Chrome 152 this worked in our launcher where the switch did not. On an unbranded Chromium build we tested, the opposite held: the switch worked and the method answered `Method not available.` Each browser supports the route the other refuses.

| Engine | `--load-extension` | `Extensions.loadUnpacked` |
| --- | --- | --- |
| Google Chrome 152 (branded) | ignored | works |
| An unbranded Chromium 152 | works | "Method not available." |

One trap sits next to the switch. Many launch scripts pair `--load-extension` with `--disable-extensions-except`, naming the same folder. On branded Chrome the loading half is ignored and the disabling half is honoured, so the browser disables every extension whose id is not in a list that is now empty. We measured it: with that flag, `loadUnpacked` returned an id and the extension never ran. Without it, the extension's service worker started.

## The months we did not notice

We learned all of this late. Mosaic puts a companion extension into every profile's browser, plus whatever extensions the operator adds to that profile. For months, on the default engine of the time, a stock Google Chrome, the launcher passed `--load-extension` and believed it. The companion never loaded and every added extension was quietly absent. Nothing said so, because an ignored switch looks exactly like one that worked.

So the launcher now does three things. It passes the switch and calls `Extensions.loadUnpacked`, because between them every engine is covered, and the method is idempotent, so the same directory returns the same id instead of a second copy. Then it checks. Chromium derives an unpacked extension's id from its path: SHA-256 of the absolute path, the first 16 bytes written as letters `a` to `p`. Mosaic computes that id before the launch and looks for a live target under that `chrome-extension://` origin. One detail cost us a measurement: Chromium resolves symlinks first, and on macOS `/tmp` is a link to `/private/tmp`, which changes every letter of the id. A load we cannot confirm is recorded as `unverified`, never as loaded.

Tesseract Chrome, the engine profiles run on today, is built from stock Chromium source without Google's branding flag, which is the condition the refusal sits under. The launcher still calls the DevTools method and still checks.

## One more branded difference a script can read

This is not a fingerprint by itself; a site does not see your command line. It belongs to a longer list of things that differ between Google's build and everyone else's, and some of those a page does see: [twenty APIs that only Chromium's field trials add or remove](https://mosaicbrowser.com/blog/twenty-apis-chrome-lacks), and a [speech-voice list of 180 entries instead of 199](https://mosaicbrowser.com/blog/chromium-speech-voices). A test suite that grew up on one family and runs on the other meets them one by one. When an extension silently goes missing, check which family the binary belongs to before anything else.

## Questions

### What does "--load-extension is not allowed in Google Chrome, ignoring" mean?

Chrome read the switch and threw it away. From Chrome 137, branded Google Chrome no longer loads unpacked extensions from the command line. The browser starts normally without the extension, and that line in the log is the only sign.

### Does --load-extension still work in Chromium?

Yes. The refusal is compiled in only when Chrome is built with Google's branding, so an unbranded Chromium and Chrome for Testing still load the folder you name.

### Can I turn --load-extension back on with a feature flag?

Not any more. Guides still name DisableLoadExtensionCommandLineSwitch, but when we searched a branded Chrome 152 binary with strings, that feature name was not in it, so disabling it does nothing.

### How do I load an unpacked extension in Google Chrome for automated tests?

Switch the test browser to Chrome for Testing or Chromium, or install the extension over the DevTools protocol with Extensions.loadUnpacked. In our measurement the DevTools call worked on branded Chrome, where the switch did not.

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

[199 voices: how a speech list tells Chromium from Chrome](https://mosaicbrowser.com/blog/chromium-speech-voices): speechSynthesis.getVoices() lists 199 voices in Google Chrome on our Mac and 180 in any unbranded Chromium. A page reads the difference in one call.

[Chrome 136 stopped remote debugging on your default profile](https://mosaicbrowser.com/blog/chrome-136-remote-debugging): Chrome 136 ignores --remote-debugging-port on the default user data directory, a change against cookie theft. Add --user-data-dir and the port opens.

[Running 49 fingerprint tests unattended, and what that takes](https://mosaicbrowser.com/blog/automating-fingerprint-tests): To automate browser fingerprint testing, tell a failed profile from a dead site, an unreadable page and your own bug. Our runner names each across 49 rows.

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



[Chrome removed the software WebGL fallback](https://mosaicbrowser.com/blog/swiftshader-webgl-fallback): Without a usable GPU, Chrome no longer falls back to SwiftShader, so WebGL fails. On a GPU-less server the missing context is itself a value a page reads.



[How Chrome writes Accept-Language, q-values and all](https://mosaicbrowser.com/blog/how-chrome-writes-accept-language): Chrome writes Accept-Language from its language list: first tag bare, then q=0.9, 0.8 and down by 0.1 to a floor of 0.1. A hand-typed header rarely matches.

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