Skip to content

fix(gallery): wait for web input coordinates - #756

Merged
houko merged 2 commits into
mainfrom
fix/gallery-webinput-ready
Nov 19, 2026
Merged

houko merged 2 commits into
mainfrom
fix/gallery-webinput-ready

Conversation

@houko

@houko houko commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • disable the gallery's trusted page-click button until the page reports its coordinates
  • wait for that ready state in TestWebInput instead of sleeping for two seconds
  • add a changelog entry for the race fix

Fixes #753.

Verification

  • go tool nsgo test -target macos -run '^TestWebInput$' ./examples/gallery passed three times
  • go tool nsgo test -target macos ./examples/gallery passed (77 passed, 44 skipped)
  • go tool nsgo check -target all passed

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation size/S and removed bug Something isn't working labels Nov 19, 2026
@houko
houko force-pushed the fix/gallery-webinput-ready branch from 63e2090 to dd04911 Compare November 19, 2026 06:15
@houko

houko commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Checked that the click-page button stays disabled until the page posts its coordinates and that TestWebInput waits on that instead of sleeping; also gated the save-note button the same way, since it clicks the same posted coordinates. Gallery (macos) passes on the final head.

@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 19, 2026
@houko
houko force-pushed the fix/gallery-webinput-ready branch from dd04911 to d80ec93 Compare November 19, 2026 06:46
@github-actions github-actions Bot added conflict Conflicts with the base branch; resolve it first and removed conflict Conflicts with the base branch; resolve it first labels Nov 19, 2026
The save button clicks the position the page posts, as the page button does, so it waits for it too rather than clicking the page's corner before the page has loaded.
@houko
houko force-pushed the fix/gallery-webinput-ready branch from d80ec93 to e3ca5b1 Compare November 19, 2026 09:18
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 19, 2026
@houko

houko commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Re-checked against current main: the gallery test still slept before clicking, and main's newer gallery changes (TV, watch, mini program) do not touch the web view demo, so the disabled-until-positioned buttons and the WaitUntil still apply. All checks pass on this head.

@houko
houko merged commit 7e7d3df into main Nov 19, 2026
20 checks passed
@houko
houko deleted the fix/gallery-webinput-ready branch November 19, 2026 11:19
houko added a commit that referenced this pull request Nov 19, 2026
#756 merged after 0.2.0 was released, but its rebase placed the entry in the 0.2.0 section.
houko added a commit that referenced this pull request Nov 19, 2026
#756 merged after 0.2.0 was released, but its rebase placed the entry in the 0.2.0 section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gallery: TestWebInput sleeps two seconds for the page instead of waiting for it, and fails macOS CI under load

1 participant