fix(wpt): allow Chrome auxiliary windows without activation

This commit is contained in:
ldm0
2026-09-28 00:44:38 +08:00
parent a47b30ae5e
commit bc06cbf5a8
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -130,6 +130,9 @@ them. The runner waits for load, fonts, two animation frames, and removal of
`crashtest` with zero subtests. An outstanding wait remains a timeout, and a
renderer crash is reported even when the browser process stays alive.
The Chrome CDP driver disables popup blocking so WPT cases can open auxiliary
test windows without user activation, as they do under ChromeDriver.
### Cross-engine layout WPT
The standalone cross-engine runner has separate layout profiles, so its
@@ -269,6 +269,8 @@ def _chrome_command(binary: Path, port: int, tmp: Path | None) -> list[str]:
"--no-sandbox",
"--disable-gpu",
"--disable-dev-shm-usage",
# WPT opens auxiliary test windows without user activation.
"--disable-popup-blocking",
"--no-first-run",
f"--user-data-dir={tmp}",
f"--remote-debugging-port={port}",