Repository navigation
Description
Summary and impact
In the Playwright firefox project, the Firefox content process crashes (SIGSEGV, signal 11) during the default-scenario column-operations journey. e2e/column-operations.spec.ts:120 › "drag, keyboard reorder and × removal keep one order across tabs and the Selected list" fails with locator.boundingBox: Page crashed. The full test:e2e suite therefore fails in Firefox. This blocks the F4 gate (#26 AC1 and AC7; PM decision O5 requires the full suite to pass in both chromium and firefox). Found while verifying #26. It is pre-existing on main at 0a8bc4b, and #26 does not change this spec. Chromium passes.
The maintainer has authorized fixing this before #26.
Delivery phase
Phase 1 - frontend with mock services (F4; found by the #26 gate).
Steps to reproduce
Mock mode, default synthetic catalog, demo account ([email protected] / demo-password). Container setup is under "Regression and verification plan".
docker compose -p <project> exec -T workspace bash -lc 'cd apps/frontend && npx playwright test e2e/column-operations.spec.ts:120 --project=firefox --repeat-each=3 --reporter=list'This fails 3/3 on main at 0a8bc4b.
The minimal trigger found by probing (not committed):
- Sign in, expand the tree, and select Alpha, Gamma and Beta.
- Wait until the grid has
aria-rowcount="8"and is not busy. Use assertions ongetByRole("tabpanel", { name: "Flows" }).getByRole("grid", …). - Evaluate
page.getByRole("tabpanel", { name: "Flows" }).getByRole("list", { name: "Process columns" }).getByRole("group").evaluateAll((g) => g.length). This is the spec'scolumns()helper, lines 41–45.
The page crashes deterministically. The same evaluation does not crash through a CSS locator (page.locator(".process-header")) or through unscoped page.getByRole("group"). An idle page with the same selection does not crash over 12 s.
Expected behavior and authority
The page does not crash, and the full Playwright suite passes in both supported desktop browsers. Authority: spec §6.1 ("Test current Chromium and Firefox"), §9.2 (the full Playwright E2E suite across supported desktop browsers on workflow_dispatch and release candidates; "no knowingly failing MVP critical scenario"), and #26 PM decision O5. Column operations follow spec §6.3 and #25.
Actual behavior
DEBUG=pw:browser shows WARNING: process <pid> exited on signal 11 from Firefox's IPC watcher, then Juggler connector … is disposed. Playwright reports Page crashed.
Environment and version
- Rootless workspace container built from
.devcontainer/Dockerfile: Node 24.22.3, npm 11.19.1,@playwright/test1.65.1 (exact pin inapps/frontend/package.jsonandpackage-lock.json), and that version's Firefox 159.0 build installed by.devcontainer/install-browsers.sh. /dev/shmis 64 MB and was 0 % used during the crash. Host: 8 cores, 14 GB.mainat0a8bc4b; alsofeat/f4-flows-gate(PR F4: verify large Flows comparisons and record the milestone gate (#26) #78).- Not yet run in hosted CI, where the crash also appears in the
workflow_dispatchfull suite (run 43734192952).
Context and dependencies
Dependencies: none. This issue is ready now.
The root cause is not established. The trigger is Playwright's injected role-selector engine (getByRole chained inside the Flows tabpanel) evaluated over the Flows DOM. That DOM has the list "Process columns" containing group headers and a virtualized grid. The crash may be a defect in Playwright's patched Firefox/Juggler build, or the app's DOM or ARIA structure may be provoking a real Firefox defect.
Suspected files:
apps/frontend/e2e/column-operations.spec.ts: thecolumns()helper and its uses.apps/frontend/src/components/comparison/ProcessHeaders.tsxandcomparison.css: header list/group markup.apps/frontend/package.jsonandpackage-lock.json: only if upgrading Playwright.
#26's new e2e/f4-gate.spec.ts (PR #78) already uses CSS-scoped header locators for this reason and passes in Firefox.
Related issues: #25 (column operations), #77, #79 (fixed in parallel), #34 (release browser matrix), #26 (blocked on this).
PM decisions: investigate, then fix (bounded).
-
Classify first. Record evidence for one of the following:
- (A) Automation-build defect: for example, the crash reproduces with a minimal static HTML page that has the same list/group/grid structure outside the app, or it disappears with only a Playwright version change and no app change.
- (B) Application defect: for example, invalid or cyclic ARIA relationships, a DOM mutation loop, or an unbounded re-render triggered by the evaluation.
Inspect the DOM and ARIA attributes under the Flows tabpanel, such as
aria-owns,aria-labelledbyandaria-describedbyreferences, IDs, and nesting. -
Non-automation Firefox check. It is optional evidence, not a pass requirement. Agents must not install Firefox on the host. If the maintainer can run the journey manually in their existing desktop Firefox, record the result. Otherwise record "not checked" with the reason. The classification must then rest on in-container evidence, such as a static reproduction or a version comparison.
-
Allowed resolutions.
- Case (B): fix the app code, and add a regression test at the lowest layer that catches the defect. The unchanged
column-operations.spec.ts:120must pass in Firefox. - Case (A), preference 1: if an already published
@playwright/testrelease fixes it, upgrade to that release. Use an exact version pin, regeneratepackage-lock.jsonin the container (npm install --save-exact @playwright/test@<version>, thennpm ci), and rebuild the workspace image (./dev build), because the Dockerfile installs browsers from the lock. The full suite must pass in both projects. - Case (A), preference 2: a test-locator workaround in
column-operations.spec.ts. Replace the role chain with CSS-scoped locators, as inf4-gate.spec.ts. Add a code comment that cites [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75 and an upstream Playwright issue link (existing, or filed by the maintainer; agents prepare the report text but do not file outside the repo without authorization). Record the upstream reference on this issue.
- Case (B): fix the app code, and add a regression test at the lowest layer that catches the defect. The unchanged
-
Not allowed:
test.skip,test.fixme,test.fail, project-conditional branches or--projectrestrictions for this case, retries, timeout increases to mask a crash, or a Firefox-only alternate path. A workaround must keep the same behavioural assertions in both projects: column order, focus, announcements, cell values, alignment (expectAligned≤ 1 px) and Selected-list order. Only how the header elements are located may change. Any role-based assertion that verifies accessibility, such as the headergroupaccessible names, must be kept through a non-crashing equivalent. Examples:toHaveAccessibleName, orgetByRolefrom a scope that does not crash. Ask PM if no equivalent exists. -
If neither resolution works within the session, record the evidence and return BLOCKED to the coordinator. Do not weaken the test.
Acceptance criteria
- AC1: The root cause is classified as (A) automation build or (B) application, with reproducible evidence recorded on this issue: the commands, the minimal trigger, and for (A) a static reproduction or a version comparison. The upstream issue reference is recorded for (A).
- AC2: The non-automation Firefox result is recorded, or "not checked" with the reason (decision 2).
- AC3:
npx playwright test e2e/column-operations.spec.ts --project=firefox --repeat-each=3passes 3/3 for every case in the file, with no skip, fixme, fail, retry or project restriction. - AC4: Any locator change keeps the behavioural assertions equivalent in both projects (decision 4). The diff shows the same
expectset, and the code comment cites [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75 and the upstream reference. - AC5: For case (B), a regression test fails before the fix and passes after. For case (A), the evidence for AC1 and AC3 is the justified alternative: the crash reproduces at
0a8bc4band does not reproduce after the fix. - AC6: If Playwright is upgraded, it uses an exact pin and the regenerated lock, the image is rebuilt, and
./dev checkpasses. The full suite passes in both projects with the new browser builds. - AC7: Standard checks pass:
format:check,lint,typecheck,test:unit,buildand the fullnpm run test:e2ein both projects. [Bug] Firefox: the process sidebar becomes an extra tab stop and fails the F2 keyboard gate #77 and [Bug] Identity-block "Location" label overflows with hosted CI fonts, failing Flows layout e2e in both browsers #79 failures are allowed only if those fixes have not merged yet, and must be named exactly in the evidence. The hosted PRqualityrun passes.
Regression and verification plan
Container setup (existing commands). Use a dedicated worktree, for example fix/75-firefox-crash, with Compose project lca-diff-bug75 and port 5175. From the worktree root on the Docker host (rootless daemon):
COMPOSE_PROJECT_NAME=lca-diff-bug75 FRONTEND_PORT=5175 ./dev up
COMPOSE_PROJECT_NAME=lca-diff-bug75 FRONTEND_PORT=5175 ./dev checkThen, in the container (docker compose -p lca-diff-bug75 exec -T workspace bash -lc 'cd apps/frontend && …'):
npm ci --no-audit --no-fund
# Before the fix (expect FAIL, page crashed)
npx playwright test e2e/column-operations.spec.ts:120 --project=firefox --repeat-each=3 --reporter=list
DEBUG=pw:browser npx playwright test e2e/column-operations.spec.ts:120 --project=firefox --reporter=list # crash evidence
# After the fix
npx playwright test e2e/column-operations.spec.ts --project=firefox --repeat-each=3 --reporter=list
npx playwright test e2e/column-operations.spec.ts e2e/f2-gate.spec.ts --project=chromium --reporter=list
npm run format:check && npm run lint && npm run typecheck && npm run test:unit && npm run build
npm run test:e2e -- --reporter=listProbe scripts or static reproduction pages used to classify the crash stay out of the commit, unless they become the regression test. After pushing, run the hosted full suite: gh workflow run frontend.yml --ref <branch>, then gh run watch <run-id> --exit-status. Record the run URL. Evidence is mock-only.
Out of scope and follow-ups
- [Bug] Firefox: the process sidebar becomes an extra tab stop and fails the F2 keyboard gate #77 (sidebar tab stop) and [Bug] Identity-block "Location" label overflows with hosted CI fonts, failing Flows layout e2e in both browsers #79 (identity-label fonts) are fixed in parallel; do not fix them here.
- [Task] F5 — Record full mock-frontend acceptance and the Phase 1 gate #34: release browser matrix and Safari.
- [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76: headroom.
- No product or behaviour changes beyond what case (B) requires. No changes to other specs' locators unless they reproduce the same crash, which must then be recorded.
Parallel-work conflicts.
- A Playwright upgrade changes
package.json,package-lock.jsonand the browser builds used by [Bug] Firefox: the process sidebar becomes an extra tab stop and fails the F2 keyboard gate #77 and [Bug] Identity-block "Location" label overflows with hosted CI fonts, failing Flows layout e2e in both browsers #79. If you upgrade, tell the coordinator so this issue merges first or the others rebase and rerun their suites. - [Bug] Identity-block "Location" label overflows with hosted CI fonts, failing Flows layout e2e in both browsers #79 is groomed not to touch
package.jsonor the lock. - No other expected file overlap.
Activity
docs: record the hosted CI results and the font-dependent layout fail…
DavidVFitzGerald commentedon Nov 15, 2026
PM: READY
Phase: Phase 1, frontend with mock services (F4). The maintainer authorized this fix before #26.
Dependencies: none. This issue blocks #26.
Spec references: §6.1 (Chromium and Firefox are tested), §6.3 (column operations), §9.2 (the full Playwright suite across supported desktop browsers), and #26 O5.
Decisions:
@playwright/testto an already published release, pinned exactly, with the lock regenerated in the container and the image rebuilt.f4-gate.spec.ts, with a comment citing [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75 and an upstream reference.Parallel conflicts: a Playwright upgrade touches
package.json, the lock and the browser builds used by #77 and #79. If you upgrade, tell the coordinator, so this issue merges first or the others rebase and rerun. There is no other file overlap.Next: Software Engineer, worktree
fix/75-firefox-crash, Compose projectlca-diff-bug75, port 5175.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → implementing. Software Engineer assigned on
fix/75-firefox-crashfrom0a8bc4b, in the isolated worktree/tmp/lca-diff-bug75(Compose projectlca-diff-bug75). Implemented in parallel with the other #26 blockers (#75, #77, #79).🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Engineering: READY FOR QA
Branch / SHA:
fix/75-firefox-crash@4be4c5c· PR: #84 (Refs #75, not merged)Deps/lock: unchanged. No Playwright upgrade, so there is no merge-order constraint for #77 or #79.
AC1: classification (A), a defect in the automation build
Evidence comes from container
lca-diff-bug75. Probe specs and HTML snapshots were not committed.expect(getByRole("tabpanel", { name: "Flows" })).toHaveCount(1), then.evaluateAll(e => e.length)on the same locator.count()calls do not crash, and neither do twoevaluateAllcalls.getByRole("tabpanel")does not crash, and neither does#panel-flows.tabpanel → list → groupandtabpanelalone crash.list → groupwithout the panel does not, nor do unscopedgroupor CSS.<script>removed and the CSS inlined or omitted, is loaded withpage.setContent. The trigger above crashes it 3/3 (Page crashed). No React or app code runs, so this is not a mutation or re-render loop.aria-labelledbyistab-flows, the tab button. The header groups usearia-labelledby/aria-describedbytouseIdIDs inside each header. There are no cycles, no dangling references, and noaria-owns./tmp/pwold/<v>in the container (npm install @playwright/test@<v>,npx playwright install firefox):executablePath)Element::GetAttrAssociatedElementsForBindingswhen the attribute is read in two worlds). It is closed by a maintainer as "Should be fixed in the next FF roll". The newest stable release is 1.65.1 (13 Nov); only1.66.0-alphabuilds exist after it. Preference 1, an upgrade, is therefore unavailable. A downgrade to 1.64.1 would also avoid the crash, but it is not an allowed resolution, so I did not use it.AC2: non-automation Firefox
Not checked. Agents do not install a host browser. The classification rests on the static reproduction and the version comparison above.
Fix (preference 2):
apps/frontend/e2e/column-operations.spec.tsonlyflowsPanel(page)ispage.locator("#panel-flows")and replaces bothgetByRole("tabpanel", { name: "Flows" })uses. A comment cites [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75 and the upstream link.expectFlowsPanel:toBeVisible,toHaveRole("tabpanel")andtoHaveAccessibleName("Flows"). It runs after the initial selection, at the empty state, and inopenLarge.list "Process columns"/grouprole queries and the group accessible-name matching are unchanged.:226,toHaveCSS("outline-style", "solid")after the keyboard drop).:focus-visiblefor focus fromlocator.focus(), even through Space, Home and Space. Chromium starts matching on the first key press.:focus-visiblewithsolidfrom focus through pick-up, move and drop. The app is correct for keyboard users, so there is no app change.toBeFocusedchecks. QA/PM please confirm this setup change is acceptable under decision 4. It changes how focus is established, not an assertion.expectcalls and removes none. Order, focus, announcements, cell values,expectAligned≤ 1 px and Selected-list order are untouched.AC3, AC5–AC7: commands and results (
docker compose -p lca-diff-bug75 exec -T workspace bash -lc 'cd apps/frontend && …')./dev up,./dev check,npm cinpx playwright test e2e/column-operations.spec.ts:120 --project=firefox --repeat-each=3at0a8bc4blocator.boundingBox: Page crashed(also with--trace off)npx playwright test e2e/column-operations.spec.ts --project=firefox --repeat-each=3npx playwright test e2e/column-operations.spec.ts e2e/f2-gate.spec.ts --project=chromiumformat:check,lint,typecheck,buildnpm run test:unit, localnpm run test:unit, hostedqualitynpm run test:e2e -- --reporter=list, local[firefox] f2-gate.spec.ts:48(#77)quality(run 43746364663)api-quality,backend-qualityandetl-qualityalso passworkflow_dispatch(run 43746957029)flows-composition.spec.ts:332and:354at both sizes in both projects (8 cases). #77:[firefox] f2-gate.spec.ts:48. All column-operations cases pass in both projectsLimitations and follow-ups
#panel-flowsworkaround can be reverted to the role-and-name locator. This is worth a small follow-up Task when that release is two or more weeks old.tabpanellocator (flows-composition,process-headers,f2-gate). They do not currently trigger the crash, so I left them unchanged, per scope.Next: QA verifies
4be4c5c(PR #84).🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → QA. Engineering READY FOR QA at
4be4c5c(PR #84), classification (A) Playwright 1.65.1 Firefox build defect, test-only workaround, no dependency change. Independent QA assigned in detached worktree/tmp/lca-diff-bug75-qa; QA to judge the:226keyboard focus-setup change against PM decision 4.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
QA: PASS
Reviewed SHA:
4be4c5cc1334b6952718d69dc17ff5b0846bd704(PR #84, basemain0a8bc4b). The PR head matches.Mode: mock only. No real backend, auth or security validation is claimed.
Environment: detached worktree
/tmp/lca-diff-bug75-qa, rootless Compose projectlca-diff-bug75-qa, port 5185../dev checkpassed.npm ciran with the lock unchanged. Inside the container,@playwright/testis 1.65.1 and the Firefox build isfirefox-1572. The working tree was left clean.Diff review
apps/frontend/e2e/column-operations.spec.ts(+29/−5).package.json,package-lock.jsonand.devcontainer/are unchanged.expectcall was removed or weakened. The 5 removed lines are only the twogetByRole("tabpanel", { name: "Flows" })chains, which now use#panel-flows.expectFlowsPanel(toBeVisible,toHaveRole("tabpanel"),toHaveAccessibleName("Flows")), called at 3 sites.toBeFocusedchecks in the keyboard step.list "Process columns"→grouprole chain and the group-name matching are unchanged.skip,fixme,fail, retries,browserNameor project branches, and no timeout changes. The onlytimeoutin the file (:312, 15 s) predates this PR.Criteria
npx playwright test e2e/column-operations.spec.ts --project=firefox --project=chromium --repeat-each=3 --reporter=list: 18/18 passed (3 cases × 3 × 2 projects), with no retries.:226assessment below.0a8bc4bspec, run from a temporary untracked copy against identical app code (the PR changes no app file), failed 3/3 withlocator.boundingBox: Page crashed. The new spec passes 9/9 in Firefox.latestis 1.65.1, and only1.66.0-alpha-*builds come after it.format:check,lint,typecheckandbuildexited 0.test:unit: 403/403, 31/31 files (load avg about 3–4, no #76 timeouts this time). Fullnpm run test:e2e: 57 passed, 1 failed. The failure is[firefox] f2-gate.spec.ts:48(#77,toBeFocused). The #79 cases pass locally, but fail on the hosted run. Hosted PRqualityrun 43746364663:pull_requestat4be4c5c, success (unit 31/31 files, smoke 12/12).api-quality,backend-qualityandetl-qualityalso pass. Hosted full suite run 43746957029:workflow_dispatchat4be4c5c, 49 passed and 9 failed, all known. #79 accounts for 8:flows-composition.spec.ts:332/:354× 2 sizes × 2 projects. #77 accounts for 1:[firefox] f2-gate.spec.ts:48. No crash. All column-operations cases pass.Independent reproduction (AC1)
I did not reuse the engineer's DOM snapshot. Instead I wrote an 8-line page: a
tab#tab-flowsand atabpanel#panel-flows aria-labelledby="tab-flows", with valid ARIA and no scripts. I loaded it withpage.setContent. The trigger wasexpect(getByRole("tabpanel",{name:"Flows"})).toHaveCount(1)followed by.evaluateAll(e=>e.length). Each case ran 3 times, using standalone installs at/tmp/qa75/v<ver>inside the container (not the repo):count()#panel-flows+toHaveRole/toHaveAccessibleName/boundingBoxaria-labelevaluateAll: Page crashed)Chromium 1255 passes every case. A static, script-free page with no app code reproduces the crash, and a Playwright version change alone makes it go away. That matches (A) and rules out (B).
The engineer's ARIA claim also holds. The tabpanel's
aria-labelledbypoints to an existing tab, and the app uses noaria-owns.Upstream:
gh issue view 43967 -R microsoft/playwrightshows the title "[Regression]: Firefox page crashes on getByRole with a name when aria-labelledby is also read in the main world". It lists last good 1.64.1 and first bad 1.65.0, and cites Mozilla bug 2090055. The issue was closed as completed on 2026-11-09 by pavelfeldman with "Should be fixed in the next FF roll". Another comment saysevaluateAllafter a namedgetByRolealso triggers the crash. The engineer's claims match the issue.:226focus-setup change: acceptable under decision 4Firefox's behaviour, measured. I ran a temporary spec with only the locator workaround, without the Tab/Shift+Tab setup. At the drop:
:focus-visiblefalse,outline-style: none, sotoHaveCSS("outline-style","solid")fails (Expected "solid", Received "none").:focus-visibletrue,solid.The crash had been hiding this Firefox failure, as the engineer reported.
The app is correct. The only rule that gives
.process-headera solid outline is the global:focus-visible { outline: 3px solid }insrc/app/shell.css.comparison.csssets onlyoutline-offset, and no drag or pick-up class adds an outline. Browsers decide by their own heuristics when script focus that follows a mouse click shows the focus ring. Firefox does not re-evaluate on later key presses, and Chromium does. Keyboard users reach headers by Tab or arrow keys, and then Firefox shows the ring.The assertion still checks the outline after the keyboard drop. The unchanged
toHaveCSS("outline-style","solid")after the keyboard drop still verifies the focus outline in both browsers. That includes the app's scripted refocus after the reorder (ProcessHeaders.tsx:297).It breaks none of decision 4's rules. The change is not a skip, retry, timeout or Firefox-only path. It removes no assertion and adds two
toBeFocusedchecks. It changes how focus is established, not what is asserted.For PM/maintainer (non-blocking). Decision 4's "only how the header elements are located may change" did not foresee a setup change of this kind. QA judges it within the intent of the decision, but PM may want to note that explicitly.
Environment notes
Unknown system error -122(EDQUOT). The host/tmptmpfs quota, shared by parallel worktrees, was temporarily exhausted. This is environmental, not a product result. The rerun above had 2.9 GB free.:focus-visibleprobe still loggedtrue solid.Follow-ups (non-blocking)
#panel-flowsto the role-and-name locator, and keepexpectFlowsPanelor drop it. It would also be worth checking then whether Firefox still needs the:226keyboard setup. It will, because that is browser focus-visible behaviour, not the crash.flows-composition,process-headersandf2-gatestill use namedtabpanelqueries. They pass now, but they are exposed to the same bug until the upgrade.Next: PR #84 goes to the maintainer for review and merge. The coordinator closes the issue after the approved merge.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: QA PASS at
4be4c5c(#75 (comment)). State → ready for maintainer review of PR #84. No dependency change, so #84 has no merge-order constraint with #80/#83. #75 closes after the maintainer merges PR #84.Carried forward: reverting the workaround after a fixed stable Playwright release is #85 (blocked until eligible). QA's note that PM decision 4 did not foresee the
:226focus-setup change is recorded; QA judged it within intent.🤖 Generated with Claude Code
test: avoid the Firefox role-name crash in column operations (Refs #75)
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: closed. QA PASS at
4be4c5c; the maintainer merged PR #84 tomain. Workaround revert tracked in #85.🤖 Generated with Claude Code
merge: bring main (#75 Firefox crash workaround, f1fd944) into the si…
Merge origin/main into feat/f4-flows-gate (Refs #26)
test: locate the Flows tabpanel by ID in the F4 gate, as in #75 (Refs #…
docs: record the F4 gate passing after the #75, #77 and #79 fixes (Refs