@@ -842,10 +842,6 @@ def _set_chrome_options(
842
842
chrome_options .add_argument ("--disable-prompt-on-repost" )
843
843
chrome_options .add_argument ("--dns-prefetch-disable" )
844
844
chrome_options .add_argument ("--disable-translate" )
845
- chrome_options .add_argument (
846
- '--disable-features=OptimizationHints,OptimizationHintsFetching,'
847
- 'OptimizationGuideModelDownloading,OptimizationTargetPrediction'
848
- )
849
845
if binary_location :
850
846
chrome_options .binary_location = binary_location
851
847
if not enable_3d_apis and not is_using_uc (undetectable , browser_name ):
@@ -874,6 +870,10 @@ def _set_chrome_options(
874
870
chrome_options .add_argument (
875
871
"--disable-autofill-keyboard-accessory-view[8]"
876
872
)
873
+ chrome_options .add_argument (
874
+ '--disable-features=OptimizationHintsFetching,'
875
+ 'OptimizationTargetPrediction'
876
+ )
877
877
chrome_options .add_argument ("--homepage=about:blank" )
878
878
chrome_options .add_argument ("--dom-automation" )
879
879
chrome_options .add_argument ("--disable-hang-monitor" )
@@ -2422,6 +2422,10 @@ def get_local_driver(
2422
2422
edge_options .add_argument (
2423
2423
"--disable-autofill-keyboard-accessory-view[8]"
2424
2424
)
2425
+ edge_options .add_argument (
2426
+ '--disable-features=OptimizationHintsFetching,'
2427
+ 'OptimizationTargetPrediction'
2428
+ )
2425
2429
edge_options .add_argument ("--disable-browser-side-navigation" )
2426
2430
edge_options .add_argument ("--disable-translate" )
2427
2431
if binary_location :
0 commit comments