Skip to content

Commit f75cda6

Browse files
committed
Update default Firefox preferences
1 parent 5f26c1f commit f75cda6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def _set_firefox_options(
533533
options.set_preference("browser.startup.homepage", blank_p)
534534
options.set_preference("startup.homepage_welcome_url", blank_p)
535535
options.set_preference("startup.homepage_welcome_url.additional", blank_p)
536+
options.set_preference("browser.newtab.url", blank_p)
536537
options.set_preference("trailhead.firstrun.branches", "nofirstrun-empty")
537538
options.set_preference("browser.aboutwelcome.enabled", False)
538539
options.set_preference("pdfjs.disabled", True)
@@ -551,7 +552,11 @@ def _set_firefox_options(
551552
options.set_preference("datareporting.healthreport.service.enabled", False)
552553
options.set_preference("datareporting.healthreport.uploadEnabled", False)
553554
options.set_preference("datareporting.policy.dataSubmissionEnabled", False)
555+
options.set_preference("browser.search.update", False)
556+
options.set_preference("privacy.trackingprotection.enabled", False)
557+
options.set_preference("toolkit.telemetry.enabled", False)
554558
options.set_preference("toolkit.telemetry.unified", False)
559+
options.set_preference("toolkit.telemetry.archive.enabled", False)
555560
if proxy_string:
556561
socks_proxy = False
557562
socks_ver = 0
@@ -588,6 +593,7 @@ def _set_firefox_options(
588593
options.set_preference(
589594
"security.mixed_content.block_active_content", False
590595
)
596+
options.set_preference("security.warn_submit_insecure", False)
591597
if settings.DISABLE_CSP_ON_FIREFOX or disable_csp:
592598
options.set_preference("security.csp.enable", False)
593599
options.set_preference(

0 commit comments

Comments
 (0)