Skip to content

fix: weekly all-browser E2E sweep (Firefox crash, Safari jump) - #392

Merged
dragon-manner merged 1 commit into
mainfrom
fix/e2e-firefox-safari-sweep
Nov 25, 2026
Merged

dragon-manner merged 1 commit into
mainfrom
fix/e2e-firefox-safari-sweep

Conversation

@dragon-manner

@dragon-manner dragon-manner commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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 own getByRole('region', { name }) has resolved that aria-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-section was empty for the guest but 512px tall: content-visibility: auto keeps 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 between mousedown and mouseup. 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

  • Docker mcr.microsoft.com/playwright:v1.65.1-noble, E2E_ALL_BROWSERS=1, retries off: 227 passed, 15 skipped, 0 failed, 0 flaky
  • The poster test on mobile-safari: 22/30 failed before, 30/30 passed after
  • npm run lint, npm run typecheck, npm run test:e2e (64/64) pass

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Accessibility checks now handle Firefox’s ARIA behavior more reliably.
    • Empty sections below the fold no longer use deferred rendering or placeholder sizing.

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>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stream-vault-7u6q Ready Ready Preview Nov 25, 2026 6:42am UTC

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The accessibility audit now adjusts ARIA reflection properties on Firefox before running axe. A CSS rule changes rendering for empty below-the-fold sections.

Changes: Firefox accessibility audit

Layer / File(s) Summary
Firefox ARIA reflection handling
e2e/specs/accessibility.spec.ts
On Firefox, audit overrides matching ARIA reflection properties on Element.prototype before running axe. Other browsers skip the override.

Empty below-the-fold sections

Layer / File(s) Summary
Empty section rendering
src/index.css
Empty .below-fold-section elements receive visible content and no intrinsic placeholder size. Nonempty sections retain the existing deferred-rendering rule.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to 32bda

The change adjusts a Firefox accessibility audit workaround in the test suite and adds a CSS rule for empty below-the-fold sections. No concrete defect was found, and the changes appear safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two fixes that the changeset addresses: a Firefox crash workaround in the accessibility E2E audit (hiding ARIA reflection properties before axe runs) and a Safari layout jump fix (a CS…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two fixes that the changeset addresses: a Firefox crash workaround in the accessibility E2E audit (hiding ARIA reflection properties before axe runs) and a Safari layout jump fix (a CSS rule for empty below-the-fold sections). The title is specific about the scope, which is the all-browser E2E sweep, and it says why each fix matters. It is not a single main change, but each part is real and present in the diff, so the title is related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d1d0a8ed-d1b3-4c5b-a3ac-1716e3b5f2ad
Commits

Reviewing files that changed from the base of the PR and between c90b335 and 32bda74.

Files selected for processing: 2

  • e2e/specs/accessibility.spec.ts
  • src/index.css

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@dragon-manner
dragon-manner merged commit f4f596e into main Nov 25, 2026
34 checks passed
@dragon-manner
dragon-manner deleted the fix/e2e-firefox-safari-sweep branch November 25, 2026 06:51

This branch was successfully deployed

1 active deployment
Preview — 32bda74c Deployed Nov 25, 2026 by vercel[bot]
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.

1 participant