Repository navigation
Audit accessible iframe trees through axe traversal - #1606
Merged
Merged
Conversation
Keep the comment-to-thread handoff and geometry checks on the real carried frame introduced by #1587. Preserve exact passage tracking and reading alignment by arranging the viewport to leave room before it clamps; let intrinsic thread content grow within the shared minimum and preferred widths. Let axe own recursive accessible-frame traversal after its library is installed in child documents. Positive controls distinguish nested visible faults, hidden and aria-hidden documents, and parent frame names. Hold only the first startup state read so declared post-presentation arrival work can settle. The eleven originally failing cases and nearby growth controls pass locally; the runtime fold gate passes 192 tests. No runtime changes or new expected-failure markers.
leaf-agent
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The gallery accessibility fix excluded visually hidden frames, but still audited an aria-hidden frame as an independent document. That produced button-name, document-title, and language findings for content outside the accessibility tree.
Install axe in child documents and let its standard page-level traversal own frame exclusion and nested auditing. A positive-control case keeps unnamed buttons in hidden and aria-hidden frames, catches two unnamed buttons in exposed child and grandchild documents, verifies the parent frame-name failure, then verifies the clean result.
Validation: the positive control fails with the helper landed in #1596 and passes with this change. The local gate passes 1,638 Python tests, 192 runtime tests, 74 browser framework tests, and 66 Worker tests; type checks, committed bundles, and pre-commit checks pass. The gallery and chrome accessibility audits pass after integrating latest main. No runtime changes or new expected-failure markers.
Ref #1592.