Keep busy dialogs keyboard reachable after native focus loss

This commit is contained in:
Joseph Doherty
2026-11-14 00:08:39 -05:00
parent f44a038645
commit 071148e9b8
17 changed files with 1649 additions and 2 deletions
@@ -0,0 +1,34 @@
# Shared native dialog focus recovery
Owned production change: only `wwwroot/js/dialog-focus.js`, shared inside this AdminUI consumer. No ModalFrame API, managed wrapper, package, style, authorization or backend change. Existing one-active-overlay and id/generation contracts remain; no nesting framework was extracted.
Actual browser evidence in the Raw workflow exposed focus falling to body when Connect was removed. Disabling a focused mutation control has the same native DOM behavior. An element-only keydown trap cannot then receive Tab/Escape, so a busy dialog could lose keyboard containment and a dismissible read could stop responding to Escape.
## Correction
Current-generation update now reanchors only when focus has left the current connected, non-inert modal, choosing its usable safe initial control or the modal root when busy has disabled every action. An already focused control/root is retained. Deliberate focus inside a different dialog is never stolen.
The original modal-local keydown listener remains in place so handled Escape stops before ancestor shortcuts, exactly as before. A document **capture** listener handles only outside-target gaps before background ancestor shortcuts; events whose targets are inside the modal are ignored by that fallback. This avoids double handling and preserves child-widget stopPropagation behavior. Both listeners are removed on deactivation. Current presentation identity/generation and other-dialog focus checks apply to keyboard handling; no global focusin hook, timer or MutationObserver expansion was added.
The root caller separately keeps its read-only Connect→Refresh node mounted with aria-disabled and server entry guards. This adapter correction is still needed for genuinely disabled mutation controls and removal gaps in any wrapper.
## Meaningful native regressions
`check_dialog_focus_recovery.py` executes the actual production adapter in Chromium over a synthetic local document and recording receiver, with real DOM focus, disabled fieldsets, inert, Tab/Shift+Tab and Escape. It uses no application host, network, operational service or database.
- `red.json`: four of six scenes failed; stale-generation and other-dialog positive controls passed.
- `red-complete.json`: same four failures with 37 checks, including Escape reaching a background shortcut from the body gap. Busy/removed focus recovery, zero-control Tab/reverse-Tab containment and dismissible-read Escape were missing.
- `green-final.json`: **9/9 scenes /51 checks passed**, no page errors. The original six scenes plus child-handled Escape, local ancestor-shortcut ordering and deactivation listener cleanup all pass. Native disabling/removal produced the actual body-focus gap; the tests do not set a fabricated component field to simulate it. The separate document-key scene deliberately blurs the current root to reproduce the interval between DOM mutation and a subsequent update.
- `existing-native-final.json`: **10/10 existing native adapter cases passed**, covering safe entry, focus containment, removed/disabled/hidden/unfocusable trigger fallback, heading/landmark preference, preserved tabindex, and restored pre-existing inert/body state. The established check_native_dialog.py source was executed unchanged except redirecting its JSON destination into this owned evidence directory. Its original OT01 evidence was not overwritten.
Final production JS SHA-256: `7f63bd6c5181d0b70edc2e87e086fab4dfba96adabd7a19737f9b3b4f18296d5`.
An intermediate document-only bubble implementation passed the six direct focus scenarios. Source review identified local ancestor ordering, so the local listener was retained. Parent then identified the outside-body-gap ordering case: `outside-capture-red.json` records two meaningful failures (7/9 scenes), because a body ancestor shortcut acted before the document bubble fallback. The final outside-target capture listener passes both cases while its inside-target skip preserves child/local handling. Intermediate logs are historical, not final source acceptance. No test assertion was relaxed.
Reproduce from the OtOpcUa repository root:
```sh
python3 infra/tools/ui-consistency/check_dialog_focus_recovery.py --output docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.json
```
This is native adapter behavior, not manual assistive-technology certification or a complete composed modal/fleet gate. All workers were notified of the exact frozen hash and must verify served bytes in their final source-linked native matrices. Managed tests were not rerun for this JavaScript-only change; final combined consumer tests remain coordinator-owned. The temporary browser contexts close at harness completion, and no host/service/container lifecycle was changed.
@@ -0,0 +1,100 @@
[
{
"trigger": true,
"heading": false,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "normal",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "disabled",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "hidden",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "unfocusable",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "disconnected",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": "2",
"state": "existing-heading-tabindex",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"first": true,
"second": false,
"busyCalls": 0,
"readyCalls": 1,
"firstStillLocked": true,
"restored": true,
"state": "single-active-and-busy",
"passed": true
},
{
"tag": "H2",
"insideClosingDialog": false,
"text": "Stable page section",
"state": "closing-heading-h2",
"passed": true
},
{
"tag": "MAIN",
"insideClosingDialog": false,
"text": "OpenNext",
"state": "closing-heading-landmark",
"passed": true
},
{
"priorInert": true,
"mainInert": false,
"priorModalOpen": true,
"trigger": true,
"state": "restore-existing-inert-body",
"passed": true
}
]
@@ -0,0 +1 @@
{'cases': 10, 'passed': 10}
@@ -0,0 +1,100 @@
[
{
"trigger": true,
"heading": false,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "normal",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "disabled",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "hidden",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "unfocusable",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": null,
"state": "disconnected",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"trigger": false,
"heading": true,
"inert": false,
"bodyLocked": false,
"headingTabindexAfterBlur": "2",
"state": "existing-heading-tabindex",
"initialSafe": true,
"nativeTabContained": true,
"passed": true
},
{
"first": true,
"second": false,
"busyCalls": 0,
"readyCalls": 1,
"firstStillLocked": true,
"restored": true,
"state": "single-active-and-busy",
"passed": true
},
{
"tag": "H2",
"insideClosingDialog": false,
"text": "Stable page section",
"state": "closing-heading-h2",
"passed": true
},
{
"tag": "MAIN",
"insideClosingDialog": false,
"text": "OpenNext",
"state": "closing-heading-landmark",
"passed": true
},
{
"priorInert": true,
"mainInert": false,
"priorModalOpen": true,
"trigger": true,
"state": "restore-existing-inert-body",
"passed": true
}
]
@@ -0,0 +1 @@
{'cases': 10, 'passed': 10}
@@ -0,0 +1,320 @@
{
"boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
"scenes": [
{
"case": "busy-update",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy update reanchors native disabled-control focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Body-gap Escape precedes ancestor shortcuts",
"passed": true
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "removed-control",
"beforeUpdate": "removed Save",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Removal update restores safe current focus",
"passed": true
},
{
"name": "Escape works after focused control removal",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "document-key-gap",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Body-gap Escape precedes ancestor shortcuts",
"passed": true
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "stale-generation",
"beforeUpdate": "generation2",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Stale update/deactivate cannot change current focus",
"passed": true
},
{
"name": "Stale update cannot mark new dialog busy",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 2
}
],
"passed": true
},
{
"case": "other-dialog-intent",
"beforeUpdate": "other dialog",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Update does not steal deliberate other-dialog focus",
"passed": true
},
{
"name": "Other dialog Escape is not intercepted",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "idle-read",
"beforeUpdate": "aria-disabled read",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Read-only pending control retains focus",
"passed": true
},
{
"name": "Dismissible read Escape survives body-focus gap",
"passed": true
},
{
"name": "Idle body-gap Escape precedes ancestor shortcuts",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "child-handled-escape",
"beforeUpdate": "child handled Escape",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Child widget retains handled Escape",
"passed": true
},
{
"name": "Child focus remains deliberate",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "deactivated-cleanup",
"beforeUpdate": "deactivated",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Deactivation removes document key interception",
"passed": true
},
{
"name": "Existing inert/body state is restored",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "ancestor-shortcut",
"beforeUpdate": "local ancestor shortcut",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Local Escape remains ahead of ancestor shortcuts",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
}
]
}
@@ -0,0 +1 @@
{"scenes": 9, "passed": 9, "checks": 51}
@@ -0,0 +1,232 @@
{
"boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
"scenes": [
{
"case": "busy-update",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy update reanchors native disabled-control focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "removed-control",
"beforeUpdate": "removed Save",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Removal update restores safe current focus",
"passed": true
},
{
"name": "Escape works after focused control removal",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "document-key-gap",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "stale-generation",
"beforeUpdate": "generation2",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Stale update/deactivate cannot change current focus",
"passed": true
},
{
"name": "Stale update cannot mark new dialog busy",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 2
}
],
"passed": true
},
{
"case": "other-dialog-intent",
"beforeUpdate": "other dialog",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Update does not steal deliberate other-dialog focus",
"passed": true
},
{
"name": "Other dialog Escape is not intercepted",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "idle-read",
"beforeUpdate": "aria-disabled read",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Read-only pending control retains focus",
"passed": true
},
{
"name": "Dismissible read Escape survives body-focus gap",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
}
]
}
@@ -0,0 +1 @@
{"scenes": 6, "passed": 6, "checks": 37}
@@ -0,0 +1,320 @@
{
"boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
"scenes": [
{
"case": "busy-update",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy update reanchors native disabled-control focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Body-gap Escape precedes ancestor shortcuts",
"passed": true
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "removed-control",
"beforeUpdate": "removed Save",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Removal update restores safe current focus",
"passed": true
},
{
"name": "Escape works after focused control removal",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
},
{
"case": "document-key-gap",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": true
},
{
"name": "Busy reverse Tab remains scoped",
"passed": true
},
{
"name": "Body-gap Escape precedes ancestor shortcuts",
"passed": false
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "stale-generation",
"beforeUpdate": "generation2",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Stale update/deactivate cannot change current focus",
"passed": true
},
{
"name": "Stale update cannot mark new dialog busy",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 2
}
],
"passed": true
},
{
"case": "other-dialog-intent",
"beforeUpdate": "other dialog",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Update does not steal deliberate other-dialog focus",
"passed": true
},
{
"name": "Other dialog Escape is not intercepted",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "idle-read",
"beforeUpdate": "aria-disabled read",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Read-only pending control retains focus",
"passed": true
},
{
"name": "Dismissible read Escape survives body-focus gap",
"passed": true
},
{
"name": "Idle body-gap Escape precedes ancestor shortcuts",
"passed": false
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "child-handled-escape",
"beforeUpdate": "child handled Escape",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Child widget retains handled Escape",
"passed": true
},
{
"name": "Child focus remains deliberate",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "deactivated-cleanup",
"beforeUpdate": "deactivated",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Deactivation removes document key interception",
"passed": true
},
{
"name": "Existing inert/body state is restored",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "ancestor-shortcut",
"beforeUpdate": "local ancestor shortcut",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Local Escape remains ahead of ancestor shortcuts",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": true
}
]
}
@@ -0,0 +1 @@
{"scenes": 9, "passed": 7, "checks": 51}
@@ -0,0 +1,222 @@
{
"boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
"scenes": [
{
"case": "busy-update",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy update reanchors native disabled-control focus",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy reverse Tab remains scoped",
"passed": false
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": false
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "removed-control",
"beforeUpdate": "removed Save",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Removal update restores safe current focus",
"passed": false
},
{
"name": "Escape works after focused control removal",
"passed": false
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": false
},
{
"case": "document-key-gap",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy reverse Tab remains scoped",
"passed": false
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Busy Escape does not reach background shortcuts",
"passed": false
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "stale-generation",
"beforeUpdate": "generation2",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Stale update/deactivate cannot change current focus",
"passed": true
},
{
"name": "Stale update cannot mark new dialog busy",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 2
}
],
"passed": true
},
{
"case": "other-dialog-intent",
"beforeUpdate": "other dialog",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Update does not steal deliberate other-dialog focus",
"passed": true
},
{
"name": "Other dialog Escape is not intercepted",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "idle-read",
"beforeUpdate": "aria-disabled read",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Read-only pending control retains focus",
"passed": true
},
{
"name": "Dismissible read Escape survives body-focus gap",
"passed": false
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": false
}
]
}
@@ -0,0 +1 @@
{"scenes": 6, "passed": 2, "checks": 37}
@@ -0,0 +1,214 @@
{
"boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
"scenes": [
{
"case": "busy-update",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy update reanchors native disabled-control focus",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy reverse Tab remains scoped",
"passed": false
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "removed-control",
"beforeUpdate": "removed Save",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Removal update restores safe current focus",
"passed": false
},
{
"name": "Escape works after focused control removal",
"passed": false
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": false
},
{
"case": "document-key-gap",
"beforeUpdate": "BODY",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy native Tab remains scoped with no usable controls",
"passed": false
},
{
"name": "Busy reverse Tab remains scoped",
"passed": false
},
{
"name": "Busy Escape dispatches no close",
"passed": true
},
{
"name": "Idle controls remain reachable after recovery",
"passed": true
},
{
"name": "Idle Escape invokes current close once",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 1
}
],
"passed": false
},
{
"case": "stale-generation",
"beforeUpdate": "generation2",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Stale update/deactivate cannot change current focus",
"passed": true
},
{
"name": "Stale update cannot mark new dialog busy",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [
{
"name": "RequestCloseFromDom",
"generation": 2
}
],
"passed": true
},
{
"case": "other-dialog-intent",
"beforeUpdate": "other dialog",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Update does not steal deliberate other-dialog focus",
"passed": true
},
{
"name": "Other dialog Escape is not intercepted",
"passed": true
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": true
},
{
"case": "idle-read",
"beforeUpdate": "aria-disabled read",
"checks": [
{
"name": "Safe initial Cancel focus",
"passed": true
},
{
"name": "Read-only pending control retains focus",
"passed": true
},
{
"name": "Dismissible read Escape survives body-focus gap",
"passed": false
},
{
"name": "No page errors",
"passed": true
}
],
"errors": [],
"calls": [],
"passed": false
}
]
}
@@ -0,0 +1 @@
{"scenes": 6, "passed": 2, "checks": 35}