Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Force deprecation of unload event #29242

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/server/lib/browsers/chrome.ts
Expand Up @@ -54,6 +54,8 @@ const disabledFeatures = [
// Disables "Enhanced ad privacy in Chrome" dialog
// https://github.com/cypress-io/cypress/issues/29199
'PrivacySandboxSettings4',
// Force the deprecation of upload events
'DeprecateUnloadByUserAndOrigin'
]

// Common Chrome Flags for Automation
Expand Down Expand Up @@ -137,6 +139,9 @@ const DEFAULT_ARGS = [

// enable precise memory info so performance.memory returns more accurate values
'--enable-precise-memory-info',

// Force the deprecation of upload events
`--enable-features=PermissionsPolicyUnload,DeprecateUnload`,
]

let browserCriClient: BrowserCriClient | undefined
Expand Down