chore: set "network.cookie.cookieBehavior" preference to "0" only for CDP (#12016)

This commit is contained in:
Alexandra Borovova 2024-02-29 09:44:56 +01:00 committed by GitHub
parent 5ebcb9db14
commit 355835bd63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -235,10 +235,6 @@ function defaultProfilePreferences(
// Disable the GFX sanity window
'media.sanity-test.disabled': true,
// Prevent various error message on the console
// jest-puppeteer asserts that no error message is emitted by the console
'network.cookie.cookieBehavior': 0,
// Disable experimental feature that is only available in Nightly
'network.cookie.sameSite.laxByDefault': false,

View File

@ -50,6 +50,9 @@ export class FirefoxLauncher extends ProductLauncher {
: {
// Do not close the window when the last tab gets closed
'browser.tabs.closeWindowWithLastTab': false,
// Prevent various error message on the console
// jest-puppeteer asserts that no error message is emitted by the console
'network.cookie.cookieBehavior': 0,
// Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263)
'fission.bfcacheInParent': false,
// Only enable the CDP protocol