Repository navigation
Engine: a Chromium-synthesized table column or header group re-created between observations keeps its token, when every sibling is known (#303) - #343
Merged
Conversation
…d between observations keeps its token, cua's one departure from the vendor's identity rule (refs #303) After the CFEqual rule, an unmatched AXColumn (or an AXGroup under an AXTable or AXOutline) keeps the token of the old sibling at the same place among that role's siblings when the eleven identity attributes match, the frame matches once the parent's move is taken out, the first child is the same element, and the old handle reads kAXErrorInvalidUIElement. Any other role, a live old handle, an inserted column or a changed header keeps the vendor's rule. Sminos-Session: cursor235#b93055dd (cua on macbook)
… nothing missing counting as a match (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…s departure, the hosted evidence, and 0.27.16 (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
…no gone check is made past the observation's deadline (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
…s known on both sides, a cut walk's unread sibling could share its first child (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
…table's column and header-group tokens re-issued as on main (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
…rule showed them all, on both observations (refs #303)
…fth test (refs #303) Sminos-Session: cursor235#b93055dd (cua on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Closes #303
What changed
Chromium re-creates the AXColumn elements it synthesizes for a table, and the table's header AXGroup, between observations: after the first observation turns its accessibility on, and whenever the table changes. The old handles then read −25202. Under the vendor's N = 1 identity rule (
matchSiblings, CFEqual) every re-created column took a new token, so the model saw a new index each time.keepRecreated(Lineage.swift) runs in emission aftermatchSiblings. It is cua's one departure from the vendor's rule: a new sibling the vendor's rule left unmatched keeps the token of an old sibling it left unkept when all of these hold:A frame or first child missing on either side is no match.
LineageEntrykeeps each element's first child and its child count.Spec: the #303 Decision Log entry, and the Design's Indexes, tokens and handles, now name the departure. Version 0.27.20, set at its merge turn (main is at 0.27.19 after #342).
Why
Columns and header groups churned tokens on every re-creation, and the HN thread churned every observation (#301's limit). A token that changes while the element is the same breaks the model's references across observations. The design session approved the strict rule: nothing unknown counts as a match, and a wrong token on an inserted column is a wrong click target, which outweighs churn.
Live (hosted macOS, Chrome for Testing 156)
Rerun on the head's rule: https://github.com/SSFSKIM/cua/actions/runs/42562287610 (main 364e017 against 5b544a1, two runners). b1b065e came after it and only narrows lists of more than 100 children, which here are the cut tables, already under the limit.
The first A/B, on fd51d41 before the completeness condition (https://github.com/SSFSKIM/cua/actions/runs/42558781067), kept the tokens on the cut tables too. Its records are in the evidence README.
Cost
Nothing is read unless the vendor's rule leaves both a new sibling and an old synthesized one unmatched on a fully known parent. Then each candidate that matched everything else costs one AXRole read: 5 or 6 per re-creation here. The completeness and anchor checks read nothing.
Limits
Tests and review
RecreatedTokenTests(12) and the engine'sswift test(1,068) pass.plugin,test,engine-swift,parity-browseris GREEN on 0e1d2ef, the head merged with main at 0.27.20: https://github.com/SSFSKIM/cua/actions/runs/42577452454. Before the merge, the same set on fea8240: https://github.com/SSFSKIM/cua/actions/runs/42565057478.plugin,testare GREEN on bcab13c, the docs and version head: https://github.com/SSFSKIM/cua/actions/runs/42570524801Residue
Sminos-Session: cursor235#b93055dd (cua on macbook)