Repository navigation
fix(e2e): hide ariaLabelledByElements in the Firefox journeys - #51
Conversation
jonikanerva
left a comment
There was a problem hiding this comment.
Verdict: PASS
Independent review (qa-enforcer, separate context). The review covers head 0edb518ae44f3d0a13cb537c2661afef8cebe257 with base 6d84065b2314f836eaee104727d8e2204f9e5f1b. The base is an ancestor of the head. Thus the tested tree is the head.
Exception approval
I approve the scoped exception of ADR 0015 and the new STACK.md §13 row, as they are at this head. The approval covers only the Playwright project firefox, Playwright 1.65.1, Firefox build 1572, and the property ariaLabelledByElements. Expiry: as the ADR states (a stable Playwright with Firefox build 1575 or later that is older than 1440 minutes, or 2027-02-28).
The basis for the approval is the five tests of e2e/firefox-aria-reflection.spec.ts: regression, challenge, equivalence, source check, and removal guard. The lint rule is not part of the basis (see finding F1).
The lead records the acceptance in ADR 0015 with this review URL, as for ADR 0011. A status-only edit of the ADR is a document delta. A change of .oxlintrc.json (F1) changes a gate. That change needs lint, verify, CI, and a delta review on the new head.
Reviewer verification (P9)
- Environment: macOS arm64, a detached worktree at the head,
mise trust,mise run setup,TEST_DATABASE_URLof the Neon branchtest(from.env.test, not printed),E2E_PORT=4417,nice -n 19. mise run verify: exit 0. nextest 492 passed, 2 skipped. Server tests (test-server) 99 passed. Doctests pass. Vitest 49 passed. Playwright 36 passed, 12 skipped. The four Firefox tests and the eight equivalence tests (Chromium, WebKit) pass.- CI run 46060523618, event
pull_request, head0edb518:ci,vuln, andimage-checkare green.
Challenge checks by the reviewer
- M1 (fixture inactive), Firefox regression test: fails with
page.evaluate: Page crashed, after the soft check "ariaLabelledByElements must be hidden in the main world". The workaround is reverted after the run. - Fix threshold 1575: Playwright PR 43982 (roll to r1575) patches
Element::GetAttrAssociatedElementsForBindingsindom/base/Element.cpp(aUseCachedValue &&guard). In Playwright issue 44135, the triage bot reports that the crash cases pass with build 1575.FIXED_FIREFOX_BUILD = 1575thus has primary-source support. - Pin is current:
npm view @playwright/test dist-tagsgiveslatest1.65.1 andnext1.66.0-alpha-2026-11-27.browsers.jsonofplaywright-core1.65.1 gives Firefox revision 1572. - Linux crash: the CI job 140692284877 (branch
feat/battery-view) shows six[firefox]failures with "Page crashed". - Tool behaviour: the
getIdrefsValuefunction of axe-core 4.14.1 reads the property first. When the value is null or undefined, the function falls back to thearia-labelledbyattribute.playwright-core1.65.1libreads onlyariaLabelledByElementsof the reflection properties (getAriaLabelledByElements). Both claims are correct. - Built bundle:
web/distof the head names noaria*Element(s)property. The source check does not scan third-party code, but the bundle has no such read now. - Dependency freshness (P7): the last recorded
mise run depsrun is in PR #46 (27 November 2026), within 7 days. The PR changes no pin.
Findings
F1 (non-blocking): the lint rule has gaps, and three records overstate it.
- Location:
.oxlintrc.json(overridee2e/*.spec.ts), PR body ("a new spec ... cannot skip the fixture"), ADR 0015 Decision 2,STACK.md§13 row ("the lint rule that every spec importstestfrome2e/support.ts"). - Evidence (scratch worktree, reverted):
import test from '@playwright/test'ine2e/x.spec.tspasses Oxlint andtsc.@playwright/testhas a default export (export default test).playwright test --listruns the spec.e2e/sub/x.spec.tswithimport { test } from '@playwright/test'passes Oxlint. Thefilesglob does not match subdirectories, buttestMatch: '*.spec.ts'finds the spec.- A helper file
e2e/h.tsthat re-exportsbasefrom@playwright/testis not in the scope of the rule. - The named and namespace imports fail correctly.
- Impact: low. A spec without the fixture runs stock Firefox. Such a spec either has the full axe check or crashes loudly, so it cannot hide a failure. The records claim more enforcement than the rule gives.
- Minimum fix:
"files": ["e2e/**/*.spec.ts"]and"importNames": ["default", "test", "expect"]. I tested this change in the scratch worktree with Oxlint 1.95.0. The default import and the subdirectory spec then fail, and the clean tree passes. Also state the helper-file gap in ADR 0015 and in §13, or remove the claim that the rule is a compensating control. - Verify:
mise run lintwith the two probe specs above must fail. Then runmise run verifyand CI on the new head.
Limitations (not verified by the reviewer)
- I did not run mutations M2 to M5 and the lint mutation of the PR body. They come from the PR record.
- My run was on macOS arm64 only. The Linux evidence is the CI job.
- No check enforces the expiry date 2027-02-28. The lead reassesses on that date.
- I did not read the Bugzilla status of bug 2090055 myself. The 1575 threshold rests on the patch and the bot result above.
- Build 1575 was not run locally, by the PR or by me. Only build 1584 was run by the implementer.
- A context that a test opens with
browser.newContext()does not get the workaround (as documented). After a rebase, PR #48login.spec.tsfails the new lint rule, because it importstestfrom@playwright/test. The lead must check its contexts. - This PASS does not approve a merge where an owner reservation applies. The lead owns acceptance.
|
Addendum to the PASS review of PR #51 @ 0edb518 (base 6d84065). The verdict does not change. This comment adds the decisions that the review did not state. AuthorityThe exception is within the delegated authority of the lead. It changes only test code, a lint rule, and documents. It adds no cost, no provider, and no data flow. It does not change the product or a product check. All axe rules and all three engines stay. The Firefox axe check loses only references that a script sets through Conditions of the approval
Effect on what the checks prove
The user question (not verified)The question is open: can a stock Firefox 159 crash on an application page with Reviewed: PR #51 @ 0edb518 (base 6d84065, round 1, addendum) |
The Firefox of Playwright 1.65.1 (Firefox 159.0, build 1572) crashes its content process when the utility world of Playwright and the main world of the page both read ariaLabelledByElements of one element (Mozilla bug 2090055). A role query with a name followed by axe-core triggers the crash. CI on linux/amd64 crashed six Firefox journeys of the battery view for this reason. The shared fixture of e2e/support.ts now deletes the property from Element.prototype in the main world, in the Firefox project only. axe then reads aria-labelledby from the content attribute. Chromium and WebKit run unchanged. Only ariaLabelledByElements is deleted, because the utility world of Playwright 1.65.1 reads no other reflection property, and a reproduction crashed for no other property. support.ts is the only e2e file that imports values from Playwright and opens a context. A further browser context comes from newBrowserContext, which applies the same workaround. Two lint rules for e2e/** enforce this: no-restricted-imports allows type imports only from the Playwright modules (also for a default import, a re-export, a spec in a subdirectory, and a helper file), and no-restricted-properties rejects newContext, launch, connect, and browser.newPage. The login journeys and auth-support.ts now take test, expect, and the request context helper from support.ts. firefox-aria-reflection.spec.ts holds the compensating evidence: the regression test of the two-world read, an axe challenge test with a missing and a resolved reference, a context test of newBrowserContext, an axe equivalence test in Chromium and WebKit on each page and state with an axe check, a check that the application source uses no hidden property, and a removal guard that fails when the pinned Playwright ships Firefox build 1575 or later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workaround of the Firefox journeys is a scoped exception under the Exceptions section of DOCTRINE.md. An independent reviewer approved it in PR #51 with conditions. The ADR records the approval, the lint rules and their known limits, the context helper, and the rule that each slice adds its pages and states with an axe check to the equivalence test. The STACK.md section 13 row states the same scope and evidence. STACK.md section 6 names the browser builds of the pinned Playwright, because the removal condition depends on the Firefox build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0edb518 to
21c211f
Compare
jonikanerva
left a comment
There was a problem hiding this comment.
Verdict: FAIL (documentation only; the code, the tests, and the lint rules pass)
Independent delta review (qa-enforcer, separate context), round 2. Head 21c211f53dddc6b92dfb3d1de30d95f8d7dd679f, base 9a55902065870780d701c0779cc1e32381eeda44. The base is an ancestor of the head. The tested tree is the head.
The FAIL has two causes. Both are text in ADR 0015 and the PR body. One documentation commit fixes both (minimum fix below). The code needs no change.
Delta since round 1
Round 1 reviewed git diff 6d84065 0edb518. The object 0edb518 still exists locally. I compared it with git diff 9a55902...21c211f and read every new or changed line.
- New since round 1:
.oxlintrc.json(e2e/**scope, four Playwright modules withallowTypeImports, the ruleno-restricted-properties, the exemption ofe2e/support.tsande2e/playwright.config.ts);e2e/support.ts(newBrowserContext,newRequestContext, value imports only here);e2e/firefox-aria-reflection.spec.ts(context test, nine equivalence cases, thelabelledByflag);e2e/login.spec.tsande2e/auth-support.ts(imports fromsupport.ts,newRequestContext);e2e/smoke.spec.ts(merge with the loginbeforeEachof PR #48); ADR 0015 (Accepted, decisions 2 to 4, limits);STACK.md§6 browser builds and the §13 row. - Not changed: application source, Dockerfiles, mise tasks, CI files, scripts,
package.json,pnpm-lock.yaml. The Playwright pin stays 1.65.1. The browser builds inSTACK.md§6 (Chromium 1255, Firefox 159.0 build 1572, WebKit 2388) equalbrowsers.jsonofplaywright-core1.65.1.
What I ran
Environment: macOS arm64, this detached checkout at the head (real path, no symlink), mise trust, mise run setup (exit 0), nice -n 19, E2E_PORT=4423.
mise run lint: exit 0. The lint task runs Oxlint overpackages web e2eandtscofe2e/tsconfig.json.verify→checks→lint, and the CI job runsmise run ci→checks→lint. So the rules run inverifyand in CI.mise run test-web: exit 0. Vitest 201 passed. Playwright 89 passed, 19 skipped (three engines). The five Firefox tests and the 18 equivalence runs (9 cases × Chromium, WebKit) pass.- CI run 46065355410 (event
pull_request, head21c211f):ci,vuln,image-checkpass. - I did not run the full
mise run verify. This delta changes test code, a lint configuration, and documents. It is not a data-path, security, or release-path change (DOCTRINE.mdP9). I rely on the implementer's recordedverifyon21c211f(exit 0, PR body) and on the CI run above. I found no reason to run it myself.
Mutations (each reverted; tree clean after)
| # | Mutation | Result |
|---|---|---|
| R1 | Fixture inactive, Firefox project, all specs | 3 failed: the regression test (must be hidden, then Page crashed), the challenge test, the context test. 24 passed: login 14, smoke 7, e4 1, source check, removal guard. |
| R2 | newBrowserContext without the workaround |
The context test fails at line 118 (hasReflection true). The other Firefox tests pass. |
| R3 | labelledBy false for not-found, true for login page |
Both cases fail at line 286. |
| R4 | The treatment also removes the aria-labelledby attributes |
Not-found fails at line 290 in Chromium and WebKit: 12 passes are missing (aria-*-attr, duplicate-id-aria). |
Lint bypass table (Oxlint 1.95.0 and tsc 7.0.2, probe files under e2e/, removed)
| Probe | Lint | Status |
|---|---|---|
import test from '@playwright/test' |
fails | enforced |
import * as pw from '@playwright/test' |
fails | enforced |
export { test } from / export * from '@playwright/test' in a helper |
fails | enforced |
e2e/sub/x.spec.ts with a value import |
fails | enforced |
playwright, playwright/test, playwright-core |
fails (also tsc: not resolvable) |
enforced |
@playwright/test/reporter, playwright-core/lib/server |
tsc fails (no value test; not resolvable) |
enforced by tsc |
import type { test } used as a value |
tsc TS1361 |
enforced by tsc |
require('@playwright/test') |
fails (typescript/no-require-imports) |
enforced |
createRequire(import.meta.url)('@playwright/test') |
passes | listed ("require()") |
await import('@playwright/test'), literal |
fails (no-restricted-imports) |
enforced; ADR says it is a gap (B2) |
await import(specifier), const variable |
passes | listed ("dynamic import()") |
b = browser; b.newContext() |
fails | enforced |
context.browser()?.newContext() |
fails | enforced |
const { newContext } = browser, also renamed |
fails | enforced |
browser['newContext'](), literal key |
fails | enforced |
browserType.launch() |
fails | enforced |
b.newPage(), page.context().browser()?.newPage() |
passes | listed ("names the object browser only") |
Reflect.apply(browser.newPage, …), browser.newPage.bind |
fails | enforced |
const method = 'newContext'; browser[method]() |
passes, also tsc |
not listed (B1) |
Findings
Blocking
B1. An unlisted lint gap. docs/adr/0015-firefox-aria-reflection-workaround.md:85 says that the rule fails on newContext "of any object". The limits list (lines 125 to 133) does not name a computed property name. const method = 'newContext'; await browser[method]() in a spec passes Oxlint and tsc. In Firefox, a page of that context does not get the workaround, and no check fails. This is outside the listed limits. Impact is low: such a page has the full axe check or crashes loudly. No rule can catch a computed key. So the fix is the text, not the rule.
B2. A false statement about the limits. docs/adr/0015-firefox-aria-reflection-workaround.md:128 and the C2 row of the PR body say that the rules do not find a dynamic import() or a require(). A literal import('@playwright/test') fails no-restricted-imports. A plain require() fails typescript/no-require-imports. Only a computed specifier and createRequire pass. The statement understates the enforcement, but it is false as written.
Minimum fix (one documentation commit): replace the limits in ADR 0015 and in the PR body with:
- They do not find an
import()with a computed module name, or arequirefunction fromcreateRequire. A literalimport()failsno-restricted-imports, and a plainrequire()failstypescript/no-require-imports. - They do not find a computed property name, for example
browser[name]()withconst name = 'newContext'. - The rule for
newPagenames the objectbrowseronly. ABrowserunder another name, or reached through an expression such aspage.context().browser(), can callnewPagewithout a finding.
Add the URL of this review to the status line of ADR 0015. The STACK.md §13 row refers to the ADR for the limits and needs no change. This is a document-only delta. The lead checks it against this text and records the check on the PR. It needs no new independent review round and no new full verify. CI must be green on the new head.
Non-blocking
- N1 (outside the diff).
web/src/auth/LoginFormView.tsx:34,web/src/auth/RouteUnavailable.tsx:12,web/src/auth/LogoutFailureView.tsx:22, andweb/src/routes/index.tsx:20say that the root cause of the crash is not known. ADR 0015 now records it. The slice that restoresaria-labelledbyupdates these comments. - N2. The equivalence result is a projection: rule id, target, impact, and each check id with its message. It does not compare
dataorrelatedNodes. For this exception the projection is enough, because R4 shows that it detects a change of thearia-labelledbyresults. - N3.
e2e/tsconfig.jsonincludes*.tsonly. Oxlint checks a spec in a subdirectory, buttscdoes not type-check it. This does not affect the workaround.
Answers to the review questions
- Fixture and helpers. A page of the fixture context, a page from
context.newPage(), and a page of anewBrowserContextcontext get the init script. The context test proves the second and third cases, and R2 shows that it can fail.newRequestContextreturns anAPIRequestContext, which has no page. Frames and popups are not tested (stated in the PR). - Equivalence (C1). The nine cases equal the eight states that
smoke.spec.ts(lines 56, 67, 77) andlogin.spec.ts(lines 146, 219, 235, 248, 359) check with axe, plus the not-found page. Each case waits for a visible sign of its state. Violations, passes, and incomplete results are compared in both colour schemes, with and without the deletion. Only the not-found page hasaria-labelledby. So, on this head, the equivalence test gives one real-page proof of the attribute fallback. For the other eight pages it proves only that the deletion has no side effect. The exception still rests mainly on the routed regression and challenge tests. That is enough for the approval, because no other page has the attribute, and an element without the attribute cannot hit the crash or lose a check. The slice that restoresaria-labelledbymust: setlabelledBy: trueon each restored case; show the equal axe result in Chromium and WebKit; and run a fixture-off mutation that crashes a real Firefox journey, so that the fixture is shown to carry load. - Login journeys without the fixture. R1 confirms the claim: login 14 and smoke 7 pass, which equals the implementer's 21. The logic is right. The crash needs one element with
aria-labelledby, a utility-world read of its name, and a main-world read of the same element. Onmainonlyweb/src/shell/NotFound.tsx:7has the attribute. The not-found journey (e2e/smoke.spec.ts:80to 84) queries a heading, not the region, and runs no axe. No journey reads both worlds on that element. So the pass does not depend on luck. - C3. Open and not blocking. The lead may not create the issue without the owner. The date stays in ADR 0015 and the §13 row, as for the other dated exceptions. The removal guard enforces the main condition when the pin changes. I do not recommend a test that fails after 2027-02-28: it reads the ambient clock (
DOCTRINE.mdP5), it is not repeatable, and it turns every unrelated PR red on that date, also an urgent fix. The lead must ask the owner about the issue and report C3 as open in the completion report.
Conditions
| Condition | State |
|---|---|
| C1 | Met. ADR 0015 decision 4, the §13 row, and the comment of the case list. |
| C2 | Met for the rules (all three round-1 gaps fail now). The limits text has B1 and B2. |
| C3 | Open, not blocking (above). |
| C4 | Met. ADR 0015 is "Accepted" with the round-1 URLs. The §13 row names no reviewer (P8). |
Exception approval
My approval of the exception of ADR 0015 from round 1 holds for this head, including the new compensating evidence (the context test, the extended equivalence test, the lint rules), on one condition: the limits text is corrected as in B1 and B2. The approval covers the text after that fix. It does not cover the current lines 125 to 133.
Gaps
- macOS arm64 only. The Linux evidence is the CI run.
- No frame or popup of a fixture context was tested.
- Build 1575 was not run.
- The user-crash question of the round-1 addendum stays open.
The delta review of PR #51 found two wrong statements about the lint rules. A literal import() and a plain require() of a Playwright module fail the lint, so they are not gaps. A computed module name, a require function from createRequire, and a computed property name such as browser[name]() pass the lint and tsc, so they are gaps. The ADR now states what the rules find and lists these gaps. The status line names the delta review, which keeps the approval on the condition of this correction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lead acceptance of head
|
Purpose
The Firefox of Playwright 1.65.1 (Firefox 159.0, build 1572) crashes its content process when Playwright's utility world and the page's main world both read
ariaLabelledByElementsof one element. A role query with a name, then axe-core, on an element witharia-labelledbygives "Page crashed". This PR adds a Firefox-only workaround to the shared e2e fixture, the tests that compensate for it, lint rules that keep the fixture in front of every page, and the accepted scoped exception (ADR 0015,STACK.md§13).Review results and conditions
0edb518: PASS, and approval of the exception with conditions C1–C4. Review: fix(e2e): hide ariaLabelledByElements in the Firefox journeys #51 (review). Addendum: fix(e2e): hide ariaLabelledByElements in the Firefox journeys #51 (comment).21c211f: FAIL on documentation only; the code, the tests, and the lint rules pass. The approval holds for the extended evidence on the condition that the lint limits text is corrected (B1, B2). Review: fix(e2e): hide ariaLabelledByElements in the Firefox journeys #51 (review).eaa714cchanges onlydocs/adr/0015-firefox-aria-reflection-workaround.md: the corrected limits (below), the description of whatno-restricted-propertiesfinds, and the round 2 URL in the status line. TheSTACK.md§13 row refers to the ADR for the limits and does not repeat a wrong statement, so it is unchanged. The lead checks this document-only delta.mainafter PR #48 (below).no-restricted-importsnow coverse2e/**(every file, also a subdirectory and a helper) and allows type imports only from@playwright/test,playwright,playwright/test, andplaywright-core. Onlye2e/support.tsande2e/playwright.config.tsare exempt. A new ruleno-restricted-propertiesfore2e/**rejectsnewContext,launch,launchPersistentContext,launchServer,connect,connectOverCDP(any object), andbrowser.newPageoutsidee2e/support.ts. Mutations below. Known limits: see "Lint limits".How C2 changes the compensating evidence: the lint rules are now part of the evidence, with the limits stated. A new test, the context test, checks that a second page of the fixture context and a page of a context from
newBrowserContexthide the property in Firefox. The other five tests are unchanged in what they prove; the equivalence test has more cases (C1), and each case now states whether its page hasaria-labelledby, which the test checks.Because
.oxlintrc.jsonand the test code changed, the new head needs a delta review.Lint limits (ADR 0015, corrected)
The rules find: a value import, default import, namespace import, or re-export from
@playwright/test,playwright,playwright/test, orplaywright-corein any file undere2e/excepte2e/support.tsande2e/playwright.config.ts; a literalimport()(no-restricted-imports); a plainrequire()(typescript/no-require-imports); the property namesnewContext,launch,launchPersistentContext,launchServer,connect, andconnectOverCDPon any object, when named directly, with a string literal key, or in a destructuring pattern; andbrowser.newPage.Known limits:
import()with a computed module name, or arequirefunction fromcreateRequire. A literalimport()failsno-restricted-imports, and a plainrequire()failstypescript/no-require-imports.browser[name]()withconst name = 'newContext'. In Firefox, a page of such a context does not get the workaround, and no check fails.newPagenames the objectbrowseronly. ABrowserunder another name, or reached through an expression such aspage.context().browser(), can callnewPagewithout a finding.Checked with one throwaway spec (not committed) on head
21c211f, Oxlint 1.95.0 andtsc7.0.2:await import('@playwright/test')failsno-restricted-imports;require('@playwright/test')failstypescript/no-require-imports;await import(specifier)with aconstspecifier,createRequire(import.meta.url)('@playwright/test'), andbrowser[method]()withconst method = 'newContext'pass Oxlint andtsc.Rebase onto
mainafter PR #48The branch is rebased onto
9a55902(PR #48, login). This rewrote the history of this branch; the review SHA0edb518no longer exists on the branch.login.spec.tsandauth-support.tsnow taketest,expect, and the helpers fromsupport.ts.login.spec.tsusescontext.newPage()on the fixture context (the page gets the init script, the context test proves it) andplaywright.request.newContext()for an API request context with no page. The API call now goes throughnewRequestContextofsupport.ts, so that onlysupport.tscallsnewContext. No test of PR feat: web login, sessions, and the session guard (S2) #48 opened a browser context withbrowser.newContext()or a popup.login.spec.tsandsmoke.spec.tspass (21 passed). The reason: onmain, the only element witharia-labelledbyis the section of the not-found page (web/src/shell/NotFound.tsx). No journey runs axe or a main-world read on that page in Firefox. PR feat: web login, sessions, and the session guard (S2) #48 removedaria-labelledbyfrom three sections; this PR does not restore it.Facts and sources
mainhas Firefox revision 1584. feat(firefox): roll to r1575 microsoft/playwright#43982@playwright/test:latest1.65.1,next1.66.0-alpha-2026-11-27.getIdrefsValue) and falls back to the content attribute when the property is absent.ariaLabelledByElementsof the eight ARIA element-reflection properties in its utility world.Reproduction of all eight reflection properties (Firefox 159.0 build 1572, macOS arm64, two runs): only
ariaLabelledByElementscrashed. The other seven are not read by the utility world of Playwright 1.65.1, so their crash is "not reachable", not "proven absent". Firefox build 1584 (160.0), driven by Playwright 1.65.1, did not crash. Build 1575 was not tested locally.Change (compared with
main)e2e/support.ts: exportstestandexpect; thecontextfixture adds the init script in Firefox;newBrowserContext,newRequestContext,firefoxExecutablePath,pinnedFirefoxBuild.e2e/smoke.spec.ts,e2e/e4-cookie.spec.ts,e2e/login.spec.ts,e2e/auth-support.ts: imports fromsupport.ts;login.spec.tsusesnewRequestContext.e2e/firefox-aria-reflection.spec.ts: the compensating tests..oxlintrc.json: the two overrides fore2e/**and the exemption fore2e/support.tsande2e/playwright.config.ts.docs/adr/0015-firefox-aria-reflection-workaround.md(Accepted),STACK.md§6 (browser builds) and §13 (exception row).Files changed compared with
0edb518, apart from whatmainbrought:.oxlintrc.json,e2e/support.ts,e2e/firefox-aria-reflection.spec.ts,e2e/login.spec.ts,e2e/auth-support.ts,e2e/smoke.spec.ts(merge of the import change with the loginbeforeEachof PR #48),docs/adr/0015-firefox-aria-reflection-workaround.md,STACK.md.No application markup changes.
Equivalence cases (Chromium and WebKit, both colour schemes)
Protected start page; start page, unavailable state; start page, reload banner; not-found page (has
aria-labelledby); login page; login page, wrong password; login page, throttled; login page, server unavailable; logout failure view. Each run starts withresetAuthand a new context. Result: equal in all 18 runs (9 cases × 2 engines).Mutation results
Each mutation was applied to the working tree of the new code, run, and reverted. Runs on macOS arm64,
E2E_PORT=4401.ariaLabelledByElements must be hidden in the main world, thenpage.evaluate: Page crashedaria-labelledbyattribute from the main world["#resolved", "#missing"], expected["#missing"]duplicate-id-ariapass of#not-found-titleis missing in both colour schemes. The other cases pass, because their pages have noaria-labelledby.web/src/mutation-probe.tsreadselement.ariaLabelledByElementsweb/src/mutation-probe.ts: ariaLabelledByElementsFIXED_FIREFOX_BUILD = 1572newBrowserContextdoes not apply the workaroundhasReflectionexpectedfalse, receivedtrue(line 118)import test from '@playwright/test'ine2e/probe-default.spec.tsno-restricted-importserror eslint(no-restricted-imports): '@playwright/test' import is restrictedimport { test } from '@playwright/test'ine2e/sub/probe-sub.spec.tsno-restricted-importse2e/sub/probe-sub.spec.tse2e/probe-helper.ts:export { test } from '@playwright/test'no-restricted-importse2e/probe-helper.tsimport { firefox } from 'playwright';import * as core from 'playwright-core'no-restricted-imports'playwright'and'playwright-core'browser.newContext(),browser.newPage(),const { newContext } = browser,browser['newContext']()no-restricted-properties'newContext' is restricted(3) and'browser.newPage' is restricted(1)The type imports of the clean tree (
import type { Page } from '@playwright/test') pass.Verification
eaa714cbcf3afa2270b91385705f3143277ccd6cis a document-only commit on21c211f(git diff 21c211f eaa714c --stat: onlydocs/adr/0015-firefox-aria-reflection-workaround.md, 18 insertions, 7 deletions).mise run linton it: exit 0. No new fullverifyfor this document-only commit; the fullverifybelow is for21c211f.21c211f:ci,vuln,image-checkgreen (round 2).mise run verifyon head21c211f53dddc6b92dfb3d1de30d95f8d7dd679f(base9a55902, clean tree), macOS arm64,TEST_DATABASE_URLof the Neon branchtest,E2E_PORT=4401: exit 0. nextest 592 passed, 3 skipped; server tests (test-server) 199 passed, 1 skipped; doctests pass; Vitest 201 passed; Playwright 89 passed, 19 skipped (engine-specific tests skip in the other projects).cijob gives the Linux Firefox evidence.0edb518):ci,vuln,image-checkgreen.Exception (accepted)
firefoxofe2e/, Playwright 1.65.1, Firefox build 1572. OnlyariaLabelledByElements.ariaLabelledByElementswithout the content attribute. The application sets none. A context that bypassesnewBrowserContextthrough a gap of the lint rules does not get the workaround.Unverified
aria-labelledby, for example with a browser extension that reads the property in a second world. The addendum gives a test procedure; not run.vulninputThis PR changes no
vulninput and no image input. No new dependency; the Playwright pin is unchanged.Follow-up (not in this PR)
PR #48 removed
aria-labelledbyfrom three sections as a reaction to this crash. The slice that restores it must (round 2 review):labelledBy: truefor each restored page in the equivalence test;web/src/auth/LoginFormView.tsx:34,web/src/auth/RouteUnavailable.tsx:12,web/src/auth/LogoutFailureView.tsx:22,web/src/routes/index.tsx:20.Note (N3 of round 2):
e2e/tsconfig.jsonincludes only top-level*.tsfiles. Oxlint checks a spec in a subdirectory, buttscdoes not type-check it. This does not affect the workaround.🤖 Generated with Claude Code