Skip to content

Commit 881c7bb

Browse files
committed
Disable 3D APIs by default to speed up WebGL sites
1 parent b397777 commit 881c7bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ def _set_chrome_options(
432432
chrome_options.add_argument("--dom-automation")
433433
chrome_options.add_argument("--disable-hang-monitor")
434434
chrome_options.add_argument("--disable-prompt-on-repost")
435+
chrome_options.add_argument("--disable-3d-apis")
435436
if servername != "localhost":
436437
use_auto_ext = True # Use Automation Extension with the Selenium Grid
437438
if not use_auto_ext: # Disable Automation Extension / detection. (Default)
@@ -1737,6 +1738,7 @@ def get_local_driver(
17371738
edge_options.add_argument("--dom-automation")
17381739
edge_options.add_argument("--disable-hang-monitor")
17391740
edge_options.add_argument("--disable-prompt-on-repost")
1741+
edge_options.add_argument("--disable-3d-apis")
17401742
if (settings.DISABLE_CSP_ON_CHROME or disable_csp) and not headless:
17411743
# Headless Edge doesn't support extensions, which are required
17421744
# for disabling the Content Security Policy on Edge

0 commit comments

Comments
 (0)