fix(webkit): do not crash in headless tests on debian 12 (#37041)

This commit is contained in:
Yury Semikhatsky 2025-08-14 14:36:51 -07:00 committed by GitHub
parent a27f50dfb9
commit 04f807e473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ export class WKPage implements PageDelegate {
// WPE WebKit is failing in mesa due to a race condition if we start interacting
// with the page too quickly.
if (!this._browserContext._browser?.options.headful && hostPlatform === 'ubuntu22.04-x64')
if (!this._browserContext._browser?.options.headful && (hostPlatform === 'ubuntu22.04-x64' || hostPlatform.startsWith('debian12')))
await new Promise(r => setTimeout(r, 500));
}