Skip to content

Create new preview renderer + build config#1407

Draft
mwtrew wants to merge 2 commits intomainfrom
1264_cross-origin-html-preview
Draft

Create new preview renderer + build config#1407
mwtrew wants to merge 2 commits intomainfrom
1264_cross-origin-html-preview

Conversation

@mwtrew
Copy link
Copy Markdown
Contributor

@mwtrew mwtrew commented Mar 27, 2026

This moves preview rendering to an iframe with a document loaded cross-origin as a source. This enforces cross-origin separation and gives the preview window it's own localstorage, isolated from the parent.

Content is injected into the doc via postMessage.

This moves preview rendering to an iframe with a document loaded
cross-origin as a source. This enforces cross-origin separation and
gives the preview window it's own localstorage, isolated from the parent.

Content is injected into the doc via `postMessage`.
@mwtrew mwtrew temporarily deployed to previews/1407/merge March 27, 2026 11:40 — with GitHub Actions Inactive
This prevents the project HTML etc. being sent before the renderer
has initialised, which was resulting in the the message being missed
and the Run button appearing to do nothing when initially clicked.
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.

1 participant