Skip to content

Commit 0b8c068

Browse files
committed
Update Chromium options
1 parent 711987e commit 0b8c068

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,7 @@ def _set_chrome_options(
13291329
chrome_options.add_argument("--auto-open-devtools-for-tabs")
13301330
if user_agent:
13311331
chrome_options.add_argument("--user-agent=%s" % user_agent)
1332+
chrome_options.add_argument("--safebrowsing-disable-download-protection")
13321333
chrome_options.add_argument("--disable-browser-side-navigation")
13331334
chrome_options.add_argument("--disable-save-password-bubble")
13341335
chrome_options.add_argument("--disable-single-click-autofill")
@@ -1367,10 +1368,9 @@ def _set_chrome_options(
13671368
included_disabled_features.append("DownloadBubbleV2")
13681369
included_disabled_features.append("InsecureDownloadWarnings")
13691370
included_disabled_features.append("InterestFeedContentSuggestions")
1370-
if user_data_dir:
1371-
included_disabled_features.append("PrivacySandboxSettings4")
1372-
if not is_using_uc(undetectable, browser_name) or user_data_dir:
1373-
included_disabled_features.append("SidePanelPinning")
1371+
included_disabled_features.append("PrivacySandboxSettings4")
1372+
included_disabled_features.append("SidePanelPinning")
1373+
included_disabled_features.append("UserAgentClientHint")
13741374
for item in extra_disabled_features:
13751375
if item not in included_disabled_features:
13761376
included_disabled_features.append(item)
@@ -2891,6 +2891,7 @@ def get_local_driver(
28912891
edge_options.add_argument(
28922892
"--disable-autofill-keyboard-accessory-view[8]"
28932893
)
2894+
edge_options.add_argument("--safebrowsing-disable-download-protection")
28942895
edge_options.add_argument("--disable-browser-side-navigation")
28952896
edge_options.add_argument("--disable-translate")
28962897
if not enable_ws:
@@ -3032,10 +3033,9 @@ def get_local_driver(
30323033
included_disabled_features.append("OptimizationGuideModelDownloading")
30333034
included_disabled_features.append("InsecureDownloadWarnings")
30343035
included_disabled_features.append("InterestFeedContentSuggestions")
3035-
if user_data_dir:
3036-
included_disabled_features.append("PrivacySandboxSettings4")
3037-
if not is_using_uc(undetectable, browser_name) or user_data_dir:
3038-
included_disabled_features.append("SidePanelPinning")
3036+
included_disabled_features.append("PrivacySandboxSettings4")
3037+
included_disabled_features.append("SidePanelPinning")
3038+
included_disabled_features.append("UserAgentClientHint")
30393039
for item in extra_disabled_features:
30403040
if item not in included_disabled_features:
30413041
included_disabled_features.append(item)

0 commit comments

Comments
 (0)