Skip to content

[Regression]: Download Chromium from custom mirror removes subpath #39009

@sanderlenaerts

Description

@sanderlenaerts

Last Good Version

1.57.0

First Bad Version

1.58.0

Steps to reproduce

We used to download the chromium binary from a host that mirrors the cdn.playwright.dev download host using PLAYWRIGHT_DOWNLOAD_HOST=""

With the update of 1.58.0 the chromium binaries now need to get fetched from /chome-for-testing-public url.
However when passing the PLAYWRIGHT_DOWNLOAD_HOST this path is removed/no longer taken into account

Expected behavior

Passing PLAYWRIGHT_DOWNLOAD_HOST="https://myhost.com" I would expect the chromium binary for mac15-arm64 to be fetched from https://myhost.com/chrome-for-testing-public instead of https://myhost.com

Actual behavior

Passing PLAYWRIGHT_DOWNLOAD_HOST="https://myhost.com" I would expect the chromium binary for mac15-arm64 to be fetched from https://myhost.com/chrome-for-testing-public instead of https://myhost.com

Additional context

Passing PLAYWRIGHT_DOWNLOAD_HOST="https://myhost.com" the chromium binary for mac15-arm64 is fetched from https://myhost.com without /chrome-for-testing-public

Environment

System:
    OS: macOS 15.7.3
    CPU: (12) arm64 Apple M3 Pro
    Memory: 70.73 MB / 36.00 GB
  Binaries:
    Node: 20.19.6
    Yarn: 4.4.0 
    npm: 10.8.2
  IDEs:
    VSCode: 1.98.0 - /opt/homebrew/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash

Metadata

Metadata

Assignees

No one assigned

    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