Skip to content

Commit ea93e3a

Browse files
committed
Update Firefox profile settings
1 parent 6205ed0 commit ea93e3a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ def _create_firefox_profile(
140140
profile.set_preference("pdfjs.disabled", True)
141141
profile.set_preference("app.update.auto", False)
142142
profile.set_preference("app.update.enabled", False)
143+
profile.set_preference("extensions.update.enabled", False)
144+
profile.set_preference("devtools.errorconsole.enabled", True)
145+
profile.set_preference(
146+
"datareporting.healthreport.logging.consoleEnabled", False)
147+
profile.set_preference("datareporting.healthreport.service.enabled", False)
148+
profile.set_preference(
149+
"datareporting.healthreport.service.firstRun", False)
150+
profile.set_preference("datareporting.healthreport.uploadEnabled", False)
151+
profile.set_preference("datareporting.policy.dataSubmissionEnabled", False)
152+
profile.set_preference(
153+
"datareporting.policy.dataSubmissionPolicyAccepted", False)
143154
if proxy_string:
144155
proxy_server = proxy_string.split(':')[0]
145156
proxy_port = proxy_string.split(':')[1]
@@ -156,6 +167,8 @@ def _create_firefox_profile(
156167
profile.set_preference("security.csp.enable", False)
157168
profile.set_preference(
158169
"browser.download.manager.showAlertOnComplete", False)
170+
profile.set_preference("browser.shell.checkDefaultBrowser", False)
171+
profile.set_preference("browser.startup.page", 0)
159172
profile.set_preference("browser.privatebrowsing.autostart", True)
160173
profile.set_preference("browser.download.panel.shown", False)
161174
profile.set_preference(

0 commit comments

Comments
 (0)