Repository navigation
fix(e2e): pin Playwright 1.64.1 to stop Firefox axe page crashes - #387
Merged
Merged
Conversation
Playwright 1.65.x ships Firefox build 1572 (Firefox 159), whose content process segfaults when ariaLabelledByElements is read from both the page (axe-core) and Playwright's isolated world (a named getByRole): Mozilla bug 2090055, microsoft/playwright#43967 and #44135, fixed for 1.66 by microsoft/playwright#43982. Pin @playwright/test (and the visual image) to 1.64.1, Firefox 157, and keep Dependabot off 1.65.x until 1.66.0. Refs #383 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JFZvpNYnicPHv6pjHTVK2f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JFZvpNYnicPHv6pjHTVK2f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
Playwright 1.65.x ships Firefox build 1572 (Firefox 159). Its content process segfaults when
Element.ariaLabelledByElementsis read from both the page's main world (axe-core'saria-prohibited-attr/hidden-contentrules) and Playwright's isolated world (a namedgetByRole, which our scans run first to wait for the<h1>). Upstream: Mozilla bug 2090055, microsoft/playwright#43967 and #44135, fixed by microsoft/playwright#43982 on the 1.66 branch. It is not fixed in the latest stable release (1.65.1). Receiver and Health are the pages that carryaria-labelledbyregions, which is why only they crashed.Timeline: dev moved from Playwright 1.62.1 (Firefox 153) to 1.65.1 on 2026-11-29 (d85c022 / 16c73cc), and
@axe-core/playwrightwent from 4.13.0 to 4.14.1 (86e8b8c). The runner image (ubuntu-26.04 20261122.9.1) was the same before and after.Evidence:
DEBUG=pw:browser) at every crash:WARNING: process NNNN exited on signal 11(SIGSEGV in the content process). Not an OOM kill.05-accessibility.spec.ts --grep "Receiver|Health" --repeat-each=12 --retries=0, 72 scans per variant:color-contrastdisabled: 3 crashes, so color-contrast is not the triggerTotal: Firefox 159 crashed in 11 of 216 scans. Firefox 153, 157 and 160 crashed in 0 of 72 scans each.
Fix
@playwright/test(withplaywrightandplaywright-corein the lockfile) is pinned to 1.64.1, which ships Firefox 157.mcr.microsoft.com/playwright:v1.64.1-noblein lockstep. If thevisualcheck shows anti-aliasing-only diffs on the Chromium 156 image, the baselines will be regenerated from that job's artifacts.@playwright/test>= 1.65.0, < 1.66.0. The rule's comment links the upstream bug and says to remove it when 1.66.0 is offered, and to take 1.66.0 only once the Firefox axe scans pass on it.Proof
05-accessibility.spec.ts --repeat-each=10 --retries=0: 300 tests, 0 page crashes. The one failure in that run is unrelated. It is a real axe finding on the Settings metadata-sources loading skeleton (aria-prohibited-attron a role-lessdiv[aria-label]), hit when the scan lands before the status query resolves. It is filed as Settings: metadata-sources loading skeleton has aria-label on a role-less div (axe aria-prohibited-attr) #386.e2eandvisualrun on this PR.Closes #383
🤖 Generated with Claude Code
https://claude.ai/code/session_01JFZvpNYnicPHv6pjHTVK2f