Chromium 156 build 1: window.chrome.runtime is exposed on ordinary https pages (stock Chrome only has app/csi/loadTimes)
Environment: ShardBrowser Launcher 2.1.0, engine build 1 (Chromium 156.0.8078.48), Windows 11 host, Windows preset (NVIDIA), profile created through the Local API, helper_enabled=false. The only extension in the profile is the built-in PDF viewer (mhjfbmdgcfjbbpaeojofohoefgiehjai, no externally_connectable).
Summary: on an ordinary https page with no extension involved (https://example.com/), window.chrome.runtime exists — connect, sendMessage, the enums (PlatformOs, OnInstalledReason, …) and an empty id. That is the shape of the binding Chrome only injects into pages an extension lists in externally_connectable. Stock Chrome does not expose it there, so a one-line check separates the engine from every stock Chrome install.
Repro (same host and residential proxy plan, measured 2026-10-22):
// https://example.com/
Object.keys(window.chrome).sort()
typeof window.chrome.runtime?.sendMessage
| Browser | Core | window.chrome keys |
runtime |
|---|---|---|---|
| ShardX 2.1.0 (3 profiles, different presets) | Chromium 156.0.8078.48 build 1 | app, csi, loadTimes, runtime |
present (connect/sendMessage are functions) |
| Stock Google Chrome on the same host | 155.0.8059.85 | app, csi, loadTimes |
absent |
| Two other Chromium-based anti-detect browsers, same host/proxy | 156.0.8078.47 and 155.0.8059.x | app, csi, loadTimes |
absent |
Everything else we compared on the JS surface is identical to a stock Chromium 156 build (1237 globals, prototypes of navigator/document/elements, 479 CSS properties, 79 Permissions Policy features, codecs/MSE/Widevine, WGSL features): chrome.runtime is the only difference.
Expected: no chrome.runtime on pages that no installed extension lists in externally_connectable, as in stock Chrome.
Workaround on our side: none. We removed it from the main frame by CDP (Page.addScriptToEvaluateOnNewDocument) only as a diagnosis; patching page globals from outside is not something we want to ship as the fix.