@@ -1329,6 +1329,7 @@ def _set_chrome_options(
1329
1329
chrome_options .add_argument ("--auto-open-devtools-for-tabs" )
1330
1330
if user_agent :
1331
1331
chrome_options .add_argument ("--user-agent=%s" % user_agent )
1332
+ chrome_options .add_argument ("--safebrowsing-disable-download-protection" )
1332
1333
chrome_options .add_argument ("--disable-browser-side-navigation" )
1333
1334
chrome_options .add_argument ("--disable-save-password-bubble" )
1334
1335
chrome_options .add_argument ("--disable-single-click-autofill" )
@@ -1367,10 +1368,9 @@ def _set_chrome_options(
1367
1368
included_disabled_features .append ("DownloadBubbleV2" )
1368
1369
included_disabled_features .append ("InsecureDownloadWarnings" )
1369
1370
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" )
1374
1374
for item in extra_disabled_features :
1375
1375
if item not in included_disabled_features :
1376
1376
included_disabled_features .append (item )
@@ -2891,6 +2891,7 @@ def get_local_driver(
2891
2891
edge_options .add_argument (
2892
2892
"--disable-autofill-keyboard-accessory-view[8]"
2893
2893
)
2894
+ edge_options .add_argument ("--safebrowsing-disable-download-protection" )
2894
2895
edge_options .add_argument ("--disable-browser-side-navigation" )
2895
2896
edge_options .add_argument ("--disable-translate" )
2896
2897
if not enable_ws :
@@ -3032,10 +3033,9 @@ def get_local_driver(
3032
3033
included_disabled_features .append ("OptimizationGuideModelDownloading" )
3033
3034
included_disabled_features .append ("InsecureDownloadWarnings" )
3034
3035
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" )
3039
3039
for item in extra_disabled_features :
3040
3040
if item not in included_disabled_features :
3041
3041
included_disabled_features .append (item )
0 commit comments