Add typed native desktop capability ABI - #184
Merged
Merged
Conversation
wieslawsoltes
added this pull request to stack #186
September 16, 2026 21:09
wieslawsoltes
marked this pull request as ready for review
September 16, 2026 21:12
This was referenced Sep 16, 2026
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.
Problem and resulting behavior
Native WebScene hosts need a browser-shaped, versioned boundary for clipboard and desktop window operations. The legacy string request path could not safely carry binary clipboard data, complete awaited operations, bind requests to a realm/navigation generation, or report lifecycle and fullscreen state.
This change adds one typed request/completion ABI shared by both capability families. Clipboard supports Promise-based text and typed MIME/byte operations, ClipboardItem, native copy/cut/paste events, cancellation, stale and duplicate completion rejection, navigation/teardown ownership, bounded queues, and a compatibility fallback. Window capabilities cover external URLs, close, focus, fullscreen enter/exit, visibility/focus/fullscreen publication, and standard events.
Issue mapping
The ABI is shared deliberately: clipboard and window operations use the same request identity, completion, realm ownership, cancellation, and queue-bound machinery.
Scope
mainat755d88c918bd245f8d29b0a9166e51d656913f854b61f2102c6aa987045d5d3ddd4b0ceb973bf909desktop-host-capabilitiesfocused native filter so this ABI can be qualified without the broad product matrixValidation
git diff --checkpassStack
This is layer 1 of the native desktop capability stack. The cumulative diagnostics/focus layer is validated remotely before the stack is merged atomically. Draft consolidation PR #76 remains open and unmerged.