diff --git a/src/interceptors/chromium-based-interceptors.ts b/src/interceptors/chromium-based-interceptors.ts index 39fbb1fc..0e319b6d 100644 --- a/src/interceptors/chromium-based-interceptors.ts +++ b/src/interceptors/chromium-based-interceptors.ts @@ -30,6 +30,7 @@ const getChromiumLaunchOptions = async ( ): Promise['options'] }> => { const certificatePem = await readFile(config.https.certPath, 'utf8'); const spkiFingerprint = await generateSPKIFingerprint(certificatePem); + const isBrave = browser.toLowerCase() === 'brave'; return { profile: profilePath, @@ -61,10 +62,15 @@ const getChromiumLaunchOptions = async ( ].join(','), // Avoid annoying extra network noise: '--disable-background-networking', - // Disable component update (without disabling components themselves, e.g. widevine) - // See https://bugs.chromium.org/p/chromium/issues/detail?id=331932 - '--component-updater=url-source=http://disabled-chromium-update.localhost:0', - '--check-for-update-interval=31536000', // Don't update for a year + // Allow Brave to update the adblock components + ...(!isBrave + ? [ + // Disable component update (without disabling components themselves, e.g. widevine) + // See https://bugs.chromium.org/p/chromium/issues/detail?id=331932 + '--component-updater=url-source=http://disabled-chromium-update.localhost:0', + '--check-for-update-interval=31536000', // Don't update for a year + ] + : []), ...(webExtensionEnabled && WEBEXTENSION_INSTALL ? [ `--load-extension=${WEBEXTENSION_INSTALL.path}`