Firefox: the home page's axe audit crashed the page on every try. Playwright's
Firefox segfaults when a script reads an element's ARIA reflection
(section.ariaLabelledByElements) after Playwright's own getByRole('region',
{ name }) resolved that aria-labelledby, and home.goto() waits on one. axe-core
4.14 reads those properties and falls back to the aria-* attributes, which is
all the app sets, so the audit hides them on Firefox.
Safari: an empty .below-fold-section (the CineMatch wrapper once a guest's
rows came back empty) stayed 380-512px tall off screen, because
content-visibility: auto keeps the remembered/guessed size. WebKit collapses
it only when it nears the viewport and has no scroll anchoring, so the grid
jumped up mid-tap and "every poster links to its title page" clicked <main>.
An empty wrapper now renders normally (0px); a real Safari user scrolling the
home page saw the same jump.
Verified in mcr.microsoft.com/playwright:v1.65.1-noble with E2E_ALL_BROWSERS=1:
227 passed, 0 failed, 0 flaky with retries off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes the two failures in the all-browser sweep (run #938).
Firefox —
accessibility.spec.ts › home page(failed 3/3: "Page crashed")Playwright's Firefox 159 segfaults the content process (SIGSEGV) when page script reads an element's ARIA reflection —
section.ariaLabelledByElements— after Playwright's owngetByRole('region', { name })has resolved thataria-labelledby.home.goto()waits on exactly such a locator, and axe-core 4.14 reads those properties. Minimal repro:setContent('<section aria-labelledby="x"><h1 id="x">Hi</h1></section>')→getByRole('region', { name: 'Hi' }).isVisible()→evaluate(() => section.ariaLabelledByElements).This is a test-harness bug, not an app bug. axe falls back to the
aria-*attributes when those properties are null, and attributes are all the app sets. So on Firefox the audit hides the properties first, and the results don't change.Safari —
seo.spec.ts › every poster links to its title page(flaky)This one is an app bug. The CineMatch wrapper
.below-fold-sectionwas empty for the guest but 512px tall:content-visibility: autokeeps an off-screen element at its last remembered size (the loading skeleton), or at the 380px guess. WebKit collapses it only when it nears the viewport, and it has no scroll anchoring, so the grid jumped up 513px betweenmousedownandmouseup. The click landed on<main>. An iPhone user scrolling the home page sees the same jump.The fix is
.below-fold-section:empty { content-visibility: visible }: an empty wrapper has nothing to defer.Verified
mcr.microsoft.com/playwright:v1.65.1-noble,E2E_ALL_BROWSERS=1, retries off: 227 passed, 15 skipped, 0 failed, 0 flakynpm run lint,npm run typecheck,npm run test:e2e(64/64) pass🤖 Generated with Claude Code
Summary by CodeRabbit