Repository navigation
macOS engine: a field whose placeholder changes is still the same element on its own handle (#398) - #430
Merged
Conversation
…r element; the re-fetch's walk uses it only to break a tie (refs #398) The same handle matches on everything but the placeholder, and .ifNeeded keeps the placeholder it reads now. The walk keeps the candidates alike on everything else: the stored handle wins; one alone is adopted only when the observation also held one alone; otherwise only the one with the stored placeholder; several undecided are ambiguous. Every other attribute still counts. Plugin 0.28.18. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ored handle; a gone handle is matched strictly as on main (refs #398) The review of main..4630985 found the walk's placeholder tie-break adopted another handle in four sequences main refused. The walk, the observed count and the rest stay main's, placeholder included, against the observation's identity; the same handle's re-read alone ignores the placeholder, and its identity keeps the observation's. The four sequences are tests, each refused. Sminos-Session: cursor235#b93055dd (cua on macbook)
…hing, so a later walk sees only the observation (refs #398) The review of main..8ed0e07 found set_value's renewal stored a value-unread identity; after the handle went, a click's walk adopted a sibling showing the old placeholder with another value, which main refuses. A placeholder-only match now leaves the stored entry exactly as observed and hands the action the live identity and actions; a strict match renews as on main. The sequence is a test that refuses. Sminos-Session: cursor235#b93055dd (cua on macbook)
Main refused a field whose placeholder changed, after set_value, on 484 of 960 same-handle pairs; the fix succeeded on all 960 with the field exact, and answered as main on every stale-handle row (run 44480787749). Placeholder-only collisions on public pages and Contacts support keeping the stale-handle walk strict (run 44473534613). 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.
What changes
Today: the macOS engine's
ElementIdentitycompares a field's placeholder strictly. So when a field's placeholder changes, the engine treats it as a different element. Placeholders change on focus, on input, with a mode, and when Chromium switches to complete accessibility mode (#366). On hosted macOS this caused set_value's post-write check to answervalueUnconfirmed("could not be found again") while the value was already in the field. It happened 10/10 on Chrome for Testing, Safari and Electron for a hint that clears on focus or switches on input.Now: a placeholder difference no longer counts when the engine re-reads the same handle (
Lineage.resolve), in every refetch mode, including set_value's post-write re-check.When the handle is gone, everything stays exactly as on main, placeholder included: the stale-handle walk, the observed-tree count and
keepRecreated. The hosted census found fields that differ only by their placeholder, usually with alike parents too:So once the handle is gone, the placeholder is evidence of which field this was.
A match that holds only because the placeholder is ignored renews nothing. The stored entry keeps the observation's identity: its value, the value-unread flag, the placeholder and the actions. Only the action gets the live data. Without this, a later walk would see a weaker identity and could adopt another field.
Files:
native/engine/Sources/Engine/Lineage.swift: +18/−4.ValueSetting.swift: a comment.Tests/EngineTests/PlaceholderIdentityTests.swift(new, 10 tests).docs/evidence/2026-11-19-placeholder-identity/README.md.Plugin 0.28.18 (ruling 1ea561bc:868).
Evidence
The kit is
probe/398-qual, workflow423477668, READMEscripts/probe-398/README.mdata67f0307. Run 44480787749 compared main44de3527against fix3c99e098, 20 trials per cell per head, interleaved, in the background, with 760/760 valid rows per lane on Chrome for Testing, Safari, Electron and AppKit.valueUnconfirmed, each with the value in the field.The Chromium jobs show red only because of a kit gate. It required re-finding an identically recreated twin, which main never does on Chromium, and the fix answers as main there. The gate was corrected without a rerun.
The census came first, in run 44473534613.
ci-gate(plugin, test, engine-swift) on76658e45: GREEN, run 44490307713.Limits
elementNoLongerValidonce the tree has changed. That is unchanged.Review
3c99e098by renewing nothing, with that sequence as a test.3c99e098diff was checked by my own reading. The hosted run above is on that head, and this PR's head adds only the evidence file.Closes #398
Sminos-Session: cursor235#b93055dd (cua on macbook)