Skip to content

[Feature]: Support for redirecting trace viewer to public hosted viewer #38622

@prakash-amit

Description

@prakash-amit

🚀 Feature Request

Problem:
When HTML reports are hosted on Azure Blob Storage or other remote locations,
users need a way to open traces in the public trace viewer (trace.playwright.dev)
instead of the embedded viewer, as the embedded viewer cannot access remote traces
with proper authentication.

Proposed Solution:
Add support for a USE_PLAYWRIGHT_PUBLIC_TRACE_VIEWER environment variable
that redirects all trace links in the HTML reporter to https://trace.playwright.dev/.

Use Case:

  • HTML reports hosted on Azure Blob Storage with SAS token authentication

Expected Behavior:
When USE_PLAYWRIGHT_PUBLIC_TRACE_VIEWER=true:

  • All trace links redirect to public viewer
  • SAS tokens from HTML report URL are preserved and appended to trace URLs
  • Works across all trace link locations

Example

No response

Motivation

Current Limitation:

When Playwright HTML reports are hosted on remote storage (Azure Blob Storage, AWS S3, etc.), the embedded trace viewer cannot access trace files due to cross-origin restrictions and authentication requirements. Users are forced to download traces manually and open them locally, which is cumbersome and breaks the seamless debugging workflow.

How This Makes Playwright Better:

✅ Seamless Remote Debugging - One-click access to traces from remotely hosted reports

✅ Better Collaboration - Teams can easily share reports with proper trace access, even with external stakeholders who don't have local access to artifacts

✅ Zero Configuration - Simple environment variable, no code changes needed

✅ Backward Compatible - Opt-in behavior; existing workflows remain unchanged

✅ Consistent Experience - The public trace viewer (trace.playwright.dev) already handles remote traces perfectly, this just makes it accessible from HTML reports

Impact:

This feature enables the full power of Playwright's trace viewer for teams using modern CI/CD pipelines with cloud-hosted artifacts, making the debugging experience as smooth for remote reports as it is for local development.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions