Skip to content

native2: select Safari web text by text markers; #99 refusal order - #187

Merged
iamnbutler merged 3 commits into
mainfrom
web-select
Oct 20, 2026
Merged

iamnbutler merged 3 commits into
mainfrom
web-select

Conversation

@iamnbutler

Copy link
Copy Markdown
Contributor

From running the Safari live checks on the installed v0.17.0 (11 of 14 passed).

Still failing: #88's Command-C after the selection copies nothing. Safari disables Copy while it isn't active (desktop_menu Edit > Copy is refused as disabled), and even after desktop_focus the copy doesn't pick up the marker selection. Filed separately.

swift test --filter CoreTests passes, and the release build has no warnings.

…e receiver before checking focus

Why: native2/Sources/DesktopMac/WebText.swift | Safari on macOS 27 dropped AXStart/EndTextMarkerForTextMarkerRange; bounds(of:) reads both ends from the AXTextMarkerRange itself
Why: native2/Sources/DesktopMac/Paste.swift | the receiver check comes before requireKeyboardFocus so a background web field gets PASTE_UNVERIFIABLE_RECEIVER, as on Node, not a focus refusal
@iamnbutler
iamnbutler merged commit f9f4bb5 into main Oct 20, 2026
2 checks passed
@iamnbutler
iamnbutler deleted the web-select branch October 20, 2026 17:32
iamnbutler added a commit that referenced this pull request Oct 20, 2026
iamnbutler added a commit that referenced this pull request Oct 20, 2026
iamnbutler added a commit that referenced this pull request Oct 20, 2026
#188) (#189)

* native2: selecting web text focuses the page, so Edit > Copy copies it (#188)

Why: native2/Sources/DesktopMac/WebText.swift | Safari focuses its address field when it opens a page in the background, so Copy after a marker selection copied the URL; focus the web area before selecting, since focusing can move the selection
Why: scripts/live-check.mjs | Safari disables Copy and has no in-window keyboard focus while inactive, so the #88 copy runs Edit > Copy after desktop_activate; background Command-C and Edit > Copy are refused

* lane: sync web-copy memory

* lane: confirm and update notes

* lane: sync web-copy memory

* CHANGELOG: #187's web selection and paste fixes
@iamnbutler iamnbutler mentioned this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant