Skip to content

Commit 227d4ee

Browse files
committed
Disable Chromium Optimization downloads
1 parent 67fd55a commit 227d4ee

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/interceptors/chromium-based-interceptors.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,26 @@ const getChromiumLaunchOptions = async (
5050
options: [
5151
// Trust our CA certificate's fingerprint:
5252
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`,
53-
// Disable annoying "What's New" page & side panel (and its annoying bookmarks popup)
54-
'--disable-features=ChromeWhatsNewUI,SidePanelPinning',
53+
// Disable annoying "What's New" page, side panel & bookmarks popup, and optimization downloads
54+
'--disable-features=' + [
55+
'ChromeWhatsNewUI',
56+
'SidePanelPinning',
57+
'OptimizationGuideModelDownloading',
58+
'OptimizationHintsFetching',
59+
'OptimizationTargetPrediction',
60+
'OptimizationHints'
61+
].join(','),
5562
// Avoid annoying extra network noise:
5663
'--disable-background-networking',
5764
// Disable component update (without disabling components themselves, e.g. widevine)
5865
// See https://bugs.chromium.org/p/chromium/issues/detail?id=331932
5966
'--component-updater=url-source=http://disabled-chromium-update.localhost:0',
6067
'--check-for-update-interval=31536000', // Don't update for a year
6168
...(webExtensionEnabled && WEBEXTENSION_INSTALL
62-
// Install HTTP Toolkit's extension, for advanced hook setup. Feature
63-
// flagged for now as it's still new & largely untested.
6469
? [
6570
`--load-extension=${WEBEXTENSION_INSTALL.path}`
6671
]
67-
: []
68-
)
72+
: [])
6973
]
7074
};
7175
}

0 commit comments

Comments
 (0)