Skip to content

Commit bf80205

Browse files
committed
Update Firefox preferences
1 parent 9bb5e2d commit bf80205

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ def _create_firefox_profile(
172172
profile.set_preference("pdfjs.disabled", True)
173173
profile.set_preference("app.update.auto", False)
174174
profile.set_preference("app.update.enabled", False)
175+
profile.set_preference("app.update.staging", False)
176+
profile.set_preference("app.update.silent", False)
177+
profile.set_preference("app.update.service.enabled", False)
178+
profile.set_preference("dom.disable_beforeunload", True)
175179
profile.set_preference("extensions.update.enabled", False)
180+
profile.set_preference("extensions.allowPrivateBrowsingByDefault", True)
181+
profile.set_preference("extensions.PrivateBrowsing.notification", False)
176182
profile.set_preference("devtools.errorconsole.enabled", True)
177183
profile.set_preference(
178184
"datareporting.healthreport.logging.consoleEnabled", False)
@@ -200,9 +206,12 @@ def _create_firefox_profile(
200206
profile.set_preference(
201207
"browser.download.manager.showAlertOnComplete", False)
202208
profile.set_preference("browser.shell.checkDefaultBrowser", False)
209+
profile.set_preference("browser.tabs.warnOnClose", False)
203210
profile.set_preference("browser.startup.page", 0)
204211
profile.set_preference("browser.privatebrowsing.autostart", True)
205212
profile.set_preference("browser.download.panel.shown", False)
213+
profile.set_preference(
214+
"browser.safebrowsing.downloads.remote.enabled", False)
206215
profile.set_preference(
207216
"browser.download.animateNotifications", False)
208217
profile.set_preference("browser.download.dir", downloads_path)

0 commit comments

Comments
 (0)