Skip to content

Extract native image clipboard support to main - #222

Merged
wieslawsoltes merged 1 commit into
mainfrom
fix/native-image-clipboard-mainline-86
Sep 17, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
fix/native-image-clipboard-mainline-86

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Current WebScene main handles native paste through clipboard.readText(), so image-only clipboard data is successfully returned by AppScene and then discarded before a DOM paste event. This extracts the already-qualified image clipboard implementation from consolidation PR #76 onto current main.

The runtime now requests any supported representation, exposes image bytes as a browser-shaped DataTransferItem/File/FileList, preserves MIME and bytes, and rejects unsupported or non-text responses with the matching DOMException. Focused regressions cover the exact PNG metadata and bytes, unsupported MIME, readText() type safety, the 16 MiB bound, and the existing 10,000-operation clipboard budgets.

Closes #86. Resolves the WebScene portion of SceneTech/AppScene#69.

Validation before merge: exact portable-v8-contract runner on this PR head. The final packaged application gate will be rebuilt and rerun after the focused merge.

@wieslawsoltes
wieslawsoltes merged commit 5d96310 into main Sep 17, 2026
3 of 12 checks passed
@wieslawsoltes
wieslawsoltes deleted the fix/native-image-clipboard-mainline-86 branch September 17, 2026 05:54
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.

Add a bounded async Clipboard API host ABI for native runtimes

1 participant