Skip to content

Commit cf4f2dc

Browse files
committed
Update default config
1 parent fa792e0 commit cf4f2dc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,6 +2738,7 @@ def _set_chrome_options(
27382738
chrome_options.add_argument("--disable-save-password-bubble")
27392739
chrome_options.add_argument("--disable-single-click-autofill")
27402740
chrome_options.add_argument("--allow-file-access-from-files")
2741+
chrome_options.add_argument("--disable-component-update")
27412742
chrome_options.add_argument("--disable-prompt-on-repost")
27422743
chrome_options.add_argument("--dns-prefetch-disable")
27432744
chrome_options.add_argument("--disable-translate")
@@ -2766,6 +2767,7 @@ def _set_chrome_options(
27662767
included_disabled_features.append("OptimizationHints")
27672768
included_disabled_features.append("OptimizationHintsFetching")
27682769
included_disabled_features.append("Translate")
2770+
included_disabled_features.append("ComponentUpdater")
27692771
included_disabled_features.append("OptimizationTargetPrediction")
27702772
included_disabled_features.append("OptimizationGuideModelDownloading")
27712773
included_disabled_features.append("DownloadBubble")
@@ -4791,6 +4793,7 @@ def get_local_driver(
47914793
if devtools and not headless:
47924794
edge_options.add_argument("--auto-open-devtools-for-tabs")
47934795
edge_options.add_argument("--allow-file-access-from-files")
4796+
edge_options.add_argument("--disable-component-update")
47944797
edge_options.add_argument("--allow-insecure-localhost")
47954798
edge_options.add_argument("--allow-running-insecure-content")
47964799
if user_agent:
@@ -4849,6 +4852,7 @@ def get_local_driver(
48494852
included_disabled_features.append("OptimizationHints")
48504853
included_disabled_features.append("OptimizationHintsFetching")
48514854
included_disabled_features.append("Translate")
4855+
included_disabled_features.append("ComponentUpdater")
48524856
included_disabled_features.append("OptimizationTargetPrediction")
48534857
included_disabled_features.append("OptimizationGuideModelDownloading")
48544858
included_disabled_features.append("InsecureDownloadWarnings")

seleniumbase/undetected/cdp_driver/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def __init__(
207207
"--disable-top-sites",
208208
"--disable-translate",
209209
"--dns-prefetch-disable",
210+
"--disable-component-update",
210211
"--disable-renderer-backgrounding",
211212
"--disable-dev-shm-usage",
212213
]
@@ -264,7 +265,7 @@ def __call__(self):
264265
"OptimizationTargetPrediction,OptimizationGuideModelDownloading,"
265266
"SidePanelPinning,UserAgentClientHint,PrivacySandboxSettings4,"
266267
"OptimizationHintsFetching,InterestFeedContentSuggestions,"
267-
"Bluetooth,WebBluetooth,UnifiedWebBluetooth,"
268+
"Bluetooth,WebBluetooth,UnifiedWebBluetooth,ComponentUpdater,"
268269
"DisableLoadExtensionCommandLineSwitch,"
269270
"WebAuthentication,PasskeyAuth"
270271
]

0 commit comments

Comments
 (0)