Skip to content

[Bug]: Screenshots timing out when using chrome extension in new headless mode #33770

@jeff-an

Description

@jeff-an

Version

1.44.1, 1.48.2

Steps to reproduce

Minimal reproduction is available in this pull request in my public demo repository: jeff-an/playwright-shadow-dom-repro#1. The main Playwright script is here while the github action workflow is defined here.

The failure can be seen in the Github actions failure, which only attempts to take a screenshot of Google.com but fails.

The Chrome extension being used is the popular https://darkreader.org/. It works totally fine on my official Chrome build and on Chromium when ran on my Mac OS laptop. However, it does not work when running on Linux.

Interestingly this flow used to work last week and I don't think I changed the Playwright version used or any dependencies. Maybe something on the default Github Actions runners changed? DEBUG=pw:api just says screenshot started and then screenshot failed with nothing useful in between.

Expected behavior

Screenshot should succeed within a reasonable time.

Actual behavior

Screenshot fails after 3 seconds. Tried the following:

  • increasing timeout
  • PW_TEST_SCREENSHOT_NO_FONTS_READY = 1
  • Google chrome official channel
  • A bunch of different browser args (see in

Additional context

No response

Environment

System:
    OS: Linux 6.5 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (4) x64 AMD EPYC [7](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:8)763 64-Core Processor
    Memory: 14.48 GB / 15.61 GB
    Container: Yes
  Binaries:
    Node: 20.1[8](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:9).1 - /opt/hostedtoolcache/node/20.18.1/x64/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: [10](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:11).8.2 - /opt/hostedtoolcache/node/20.18.1/x64/bin/npm
  Languages:
    Bash: 5.1.16 - /usr/bin/bash
  npmPackages:
    @playwright/test: ^1.48.2 => 1.48.2

Metadata

Metadata

Assignees

Labels

browser-chromiumupstreamThis is a bug in something playwright depends on, like a browser.v1.56

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