Repository navigation
Restore restricted parent messaging for isolated iframe realms - #895
Merged
Merged
Conversation
This was referenced Sep 21, 2026
6 tasks
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.
Result
An unchanged Code OSS Markdown webview loads its isolated HTTPS prelude and ServiceWorker but stops at
window.parent.postMessage(...): WebScene currently gives cross-origin child realmsparent=null. Restore a restricted child-realm parent/top WindowProxy that routes target-origin messages and transferred ports through the existing bounded queue while denying access to the real parent DOM/global. Keep a stable owner-side frame proxy forMessageEvent.source. Closes #894; full installed Markdown acceptance remains under #264/#267 and SceneTech/AppScene#398.Focused gates
parent.documentread/write denial: 76.2577 ms < 1,000 ms.iframe-navigation-lifecycletest reportsreentrantUnloadBlocked:falseon both this branch and a rebuilt clean merged06d6a4f5baseline, after all focused code/test changes were reverted. That separate merged-main behavior is tracked under Enforce secure nested-document lifecycle for Code OSS webviews #267. Related CI and exact installed SDK/CLI Markdown run remain the next gates.Reproduction and gate details:
docs/validation/isolated-parent-postmessage-894-264.md. No Code OSS source change or browser shell dependency.