Skip to content

Expose trusted native input events - #472

Merged
wieslawsoltes merged 1 commit into
mainfrom
feature/trusted-input-events-470
Sep 18, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
feature/trusted-input-events-470

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Unchanged VS Code drops native nested-webview link clicks and keyboard forwarding because WebScene's host-dispatched Event objects have no isTrusted value. This change exposes isTrusted: true for events emitted inside the native input dispatch scope while preserving false for constructed events and HTMLElement.click() activation, including calls made from trusted handlers.

The change adds event provenance only. Existing VS Code listeners retain link, context-menu, and keyboard handoff ownership, and existing native host requests retain navigation authority.

Validation was intentionally not run under the current implementation-only directive. Chromium/WPT comparison, native input/link coverage, synthetic-click isolation, performance/lifecycle checks, packaging, and cumulative unchanged-consumer acceptance remain recorded validation debt on #470 and #268.

Closes #470

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.

Mark host-dispatched input events trusted for nested webview handoff

1 participant