Skip to content

Commit 3da18b0

Browse files
committed
Update Firefox default settings
1 parent a1d513d commit 3da18b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ def _create_firefox_profile(
273273
profile.set_preference("app.update.silent", True)
274274
profile.set_preference("browser.privatebrowsing.autostart", True)
275275
profile.set_preference("devtools.errorconsole.enabled", False)
276+
profile.set_preference("dom.webnotifications.enabled", False)
277+
profile.set_preference("dom.disable_beforeunload", True)
278+
profile.set_preference("browser.contentblocking.database.enabled", False)
276279
profile.set_preference("extensions.allowPrivateBrowsingByDefault", True)
277280
profile.set_preference("extensions.PrivateBrowsing.notification", False)
278281
profile.set_preference("extensions.systemAddon.update.enabled", False)

0 commit comments

Comments
 (0)