Skip to content

Bound nested context-menu ancestry and handoff - #530

Merged
wieslawsoltes merged 1 commit into
mainfrom
feature/nested-context-menu-529
Sep 19, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
feature/nested-context-menu-529

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

WebScene retains child documents beneath iframe owners for native layout, but DOM ancestry must stop at the child document. Unchanged Code OSS context-menu code walks closest('[data-vscode-context]'), parent elements, and the event path; crossing into the outer document can leak host context and dispatch beyond the webview boundary.

This bounds Element.closest(), native event ancestry, and composedPath() at the dispatch realm's document root. Authored native and browser sources cover prior cancellation, exact child-over-parent context merging, outer-frame isolation, child-local coordinates, handler cancellation, and visibility-class set/clear.

Only git diff --check ran under the current implementation-first policy. Chromium/native execution, lifecycle, performance, accessibility, package, and unchanged-product evidence remain deferred in #268.

Closes #529
Progresses #268

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.

Bound nested webview context-menu ancestry and handoff

1 participant