Problem
When AGENT_BROWSER_IGNORE_HTTPS_ERRORS=true is set, the main browser context correctly ignores certificate errors. However, the recording context created by agent-browser record start does not inherit this setting, causing goto to fail with Operation timed out on pages with self-signed HTTPS certificates.
Steps to Reproduce
export AGENT_BROWSER_EXECUTABLE_PATH="/path/to/chrome-for-testing"
export AGENT_BROWSER_ARGS="--headless=new"
export AGENT_BROWSER_IGNORE_HTTPS_ERRORS=true
export AGENT_BROWSER_DEFAULT_TIMEOUT=120000
agent-browser close --all
agent-browser open "about:blank" # Works
agent-browser record start ./test.webm # Starts recording
agent-browser goto "https://self-signed.local:3000" # Times out
The goto after record start fails because the recording's BrowserContext doesn't have ignoreHTTPSErrors: true.
Meanwhile, agent-browser open "https://self-signed.local:3000" (without recording) works fine.
Expected Behavior
AGENT_BROWSER_IGNORE_HTTPS_ERRORS=true should apply to all browser contexts, including the recording context.
Environment
- agent-browser 0.24.1
- macOS (Apple Silicon)
- Chrome for Testing 147.0.7727.15
Context
This blocks headless visual verification of apps that use self-signed HTTPS certs for local development (common with tools like mkcert). ProofShot relies on agent-browser for recording and hits this when verifying local dev servers.
Problem
When
AGENT_BROWSER_IGNORE_HTTPS_ERRORS=trueis set, the main browser context correctly ignores certificate errors. However, the recording context created byagent-browser record startdoes not inherit this setting, causinggototo fail withOperation timed outon pages with self-signed HTTPS certificates.Steps to Reproduce
The
gotoafterrecord startfails because the recording's BrowserContext doesn't haveignoreHTTPSErrors: true.Meanwhile,
agent-browser open "https://self-signed.local:3000"(without recording) works fine.Expected Behavior
AGENT_BROWSER_IGNORE_HTTPS_ERRORS=trueshould apply to all browser contexts, including the recording context.Environment
Context
This blocks headless visual verification of apps that use self-signed HTTPS certs for local development (common with tools like mkcert). ProofShot relies on agent-browser for recording and hits this when verifying local dev servers.