Skip to content

fix: re-apply ignore_https_errors to recording context#1178

Merged
ctate merged 1 commit intovercel-labs:mainfrom
juniper929:fix/recording-ignore-https-errors
Apr 7, 2026
Merged

fix: re-apply ignore_https_errors to recording context#1178
ctate merged 1 commit intovercel-labs:mainfrom
juniper929:fix/recording-ignore-https-errors

Conversation

@juniper929
Copy link
Copy Markdown
Contributor

record start calls Target.createBrowserContext to create an isolated BrowserContext for the recording session.
Security.setIgnoreCertificateErrors is session-scoped — it only applies to the session it was sent on and does
not propagate to new contexts. As a result, the recording context always starts with default certificate validation enabled, regardless of --ignore-https-errors or AGENT_BROWSER_IGNORE_HTTPS_ERRORS.

Symptoms reported in #1172:

  • Navigation to self-signed HTTPS URLs succeeds in the normal context
  • The same URL times out immediately after record start
  • Affects all local HTTPS development environments (e.g. mkcert)

The fix stores ignore_https_errors in BrowserManager alongside download_path, and re-applies Security.setIgnoreCertificateErrors to the new session after context creation — matching the existing pattern for Browser.setDownloadBehavior re-application.

Fixes #1172

Security.setIgnoreCertificateErrors is session-scoped, so creating a new
BrowserContext for recording (Target.createBrowserContext) starts with the
default certificate validation enabled, ignoring the launch-time flag.

Store ignore_https_errors in BrowserManager alongside download_path, and
re-apply Security.setIgnoreCertificateErrors to the new session after
recording context creation — matching the existing pattern for download
behavior re-application.

Fixes vercel-labs#1172
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 7, 2026

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@ctate
Copy link
Copy Markdown
Collaborator

ctate commented Apr 7, 2026

Thanks for fixing this @juniper929!

@ctate ctate merged commit 6520e41 into vercel-labs:main Apr 7, 2026
10 of 12 checks passed
@juniper929
Copy link
Copy Markdown
Contributor Author

My pleasure! @ctate

@ctate ctate mentioned this pull request Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recording context does not inherit --ignore-https-errors / AGENT_BROWSER_IGNORE_HTTPS_ERRORS

2 participants