Skip to content

Commit 171641b

Browse files
committed
Disable chromium component updates without disabling the components
This is arguably a Chromium bug really, but c'est la vie. When disabling updating explicitly, the components are disabled completely (nothing is shown on chrome://components) which causes problems and unrepresentative behaviour, most notably when testing services that use DRM video. This replaces that with an invalid update URL, so the update fails instead. That results in a single failing request in HTTP Toolkit, but this is better than either broken functionality or full updates (many large requests every time).
1 parent 23b4b8f commit 171641b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interceptors/chromium-based-interceptors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const getChromiumLaunchOptions = async (
5454
'--disable-features=ChromeWhatsNewUI',
5555
// Avoid annoying extra network noise:
5656
'--disable-background-networking',
57-
'--disable-component-update',
57+
// Disable component update (without disabling components themselves, e.g. widevine)
58+
// See https://bugs.chromium.org/p/chromium/issues/detail?id=331932
59+
'--component-updater=url-source=http://disabled-chromium-update.localhost:0',
5860
'--check-for-update-interval=31536000', // Don't update for a year
5961
...(webExtensionEnabled && WEBEXTENSION_INSTALL
6062
// Install HTTP Toolkit's extension, for advanced hook setup. Feature

0 commit comments

Comments
 (0)