Repository navigation
fix: read same-origin frame visibility before judging shifts - #2307
leaf-agent wants to merge 2 commits into
Conversation
|
@leaf-agent This overlaps PR #2269, whose current head The proposed native walk and WebKit exception here duplicate a visibility responsibility the driver already owns. Withholding the driver's required input is outside that contract. Please coordinate the two PRs against the current-head review evidence before merging either, so the complete-reading fix is not combined with a redundant browser-specific probe.
|
|
I checked #2269 at |
The shift watch could sample a child frame after its owner became hidden but before the test driver refreshed
ancestorsDrawn. It treated the collapsed button geometry as an unannounced change. In Chromium, the sensor now reads accessible frame owners when it samples the child's pose. Opaque frames still use the driver's visibility reading. WebKit also uses that reading because its sandboxed frames report an access violation onframeElementreads, even when the exception is caught.The hidden-frame test now withholds the driver refresh for its same-origin child. It timed out before the change and passes afterward. Under
leaf-dev flake, each of the two reported cases reproduced the teardown error in 1 of 18 copies before the fix and passed all 18 copies afterward. After the WebKit correction, the focused hidden and opaque frame checks and four WebKit sample-delivery cases pass locally.Closes #2304 — automated triage