Skip to content

window.postMessage across frames#1817

Merged
karlseguin merged 2 commits intomainfrom
frames_postMessage
Mar 16, 2026
Merged

window.postMessage across frames#1817
karlseguin merged 2 commits intomainfrom
frames_postMessage

Conversation

@karlseguin
Copy link
Copy Markdown
Collaborator

Depends on lightpanda-io/zig-v8-fork#160

Improves postMessage support, specifically for use across frames. This commit also addresses a few other issues (identified while implementing this).

1 - Since macrotasks can schedule more macrotasks, we need to check the time-to- next microtask after all microtasks have completed.

2 - frame's onload callback is triggered from the frame's context, but has to
execute on the parents contet.

Depends on lightpanda-io/zig-v8-fork#160

Improves postMessage support, specifically for use across frames. This commit
also addresses a few other issues (identified while implementing this).

1 - Since macrotasks can schedule more macrotasks, we need to check the time-to-
next microtask after all microtasks have completed.

2 - frame's onload callback is triggered from the frame's context, but has to
    execute on the parents contet.
@karlseguin karlseguin merged commit c25f389 into main Mar 16, 2026
12 checks passed
@karlseguin karlseguin deleted the frames_postMessage branch March 16, 2026 22:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant