Skip to content

fix(e2e): pin Playwright 1.64.1 to stop Firefox axe page crashes - #387

Merged
stevenpickles merged 5 commits into
devfrom
132-firefox-axe-crash
Nov 30, 2026
Merged

stevenpickles merged 5 commits into
devfrom
132-firefox-axe-crash

Conversation

@stevenpickles

Copy link
Copy Markdown
Owner

Root cause

Playwright 1.65.x ships Firefox build 1572 (Firefox 159). Its content process segfaults when Element.ariaLabelledByElements is read from both the page's main world (axe-core's aria-prohibited-attr / hidden-content rules) and Playwright's isolated world (a named getByRole, 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 carry aria-labelledby regions, 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/playwright went 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:

  • Browser stderr (DEBUG=pw:browser) at every crash: WARNING: process NNNN exited on signal 11 (SIGSEGV in the content process). Not an OOM kill.
  • Repro run 46457017062, Firefox, 05-accessibility.spec.ts --grep "Receiver|Health" --repeat-each=12 --retries=0, 72 scans per variant:
    • Playwright 1.65.1 with axe 4.14.1: 2 crashes
    • Playwright 1.65.1 with axe 4.13.0: 6 crashes, so the axe bump is not the cause
    • Playwright 1.62.1 (Firefox 153): 0 crashes
  • Repro run 46458395261, same setup:
    • Playwright 1.64.1 (Firefox 157): 0 crashes
    • 1.66.0-alpha-2026-11-30 (Firefox 160): 0 crashes
    • 1.65.1 with color-contrast disabled: 3 crashes, so color-contrast is not the trigger

Total: Firefox 159 crashed in 11 of 216 scans. Firefox 153, 157 and 160 crashed in 0 of 72 scans each.

Fix

  • @playwright/test (with playwright and playwright-core in the lockfile) is pinned to 1.64.1, which ships Firefox 157.
  • The visual job's image moves to mcr.microsoft.com/playwright:v1.64.1-noble in lockstep. If the visual check shows anti-aliasing-only diffs on the Chromium 156 image, the baselines will be regenerated from that job's artifacts.
  • Dependabot ignores @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.
  • No retries bump, and no axe rule or node exclusions.

Proof

  • Run 46459997765, on the pinned lockfile, Firefox, the whole 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-attr on a role-less div[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.
  • The temporary repro workflow is removed in the final commit. Full e2e and visual run on this PR.

Closes #383

🤖 Generated with Claude Code

https://claude.ai/code/session_01JFZvpNYnicPHv6pjHTVK2f

stevenpickles and others added 5 commits November 30, 2026 11:01
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
@stevenpickles
stevenpickles merged commit 6feed31 into dev Nov 30, 2026
14 checks passed
@stevenpickles
stevenpickles deleted the 132-firefox-axe-crash branch November 30, 2026 16:48
@stevenpickles stevenpickles mentioned this pull request Nov 30, 2026
20 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E2E: Firefox 'Page crashed' during axe scans of Receiver/Health (intermittent, since 2026-11-30)

1 participant