Skip to content

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

@OfriHarlev

Description

@OfriHarlev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions