Skip to content

Fix external RPC payload bridge handling#3

Merged
r0ohafza merged 1 commit intomainfrom
r0ohafza/splits-runtime-break
Feb 24, 2026
Merged

Fix external RPC payload bridge handling#3
r0ohafza merged 1 commit intomainfrom
r0ohafza/splits-runtime-break

Conversation

@r0ohafza
Copy link
Collaborator

@r0ohafza r0ohafza commented Feb 24, 2026

looks like the async nature of the onMessageExternal is still brittle/evolving according to codex, the pattern we previously had no longer works because of new changes in chromiums messaging flow. Check out the responses section here: https://developer.chrome.com/docs/extensions/develop/concepts/messaging

This hardens the external runtime bridge used to retrieve stored RPC payloads for large transaction flows. It changes the external message handler to use sendResponse with an explicit async channel return, improving compatibility with runtime messaging behavior. It also broadens sender origin detection to support sender contexts that expose origin rather than URL, while keeping existing origin checks intact. Together this prevents valid payload fetch requests from being rejected or dropped in each send transaction and wallet send calls flows.

@r0ohafza r0ohafza marked this pull request as ready for review February 24, 2026 18:26
@r0ohafza r0ohafza requested a review from mihoward21 February 24, 2026 18:38
@r0ohafza r0ohafza merged commit 9d07517 into main Feb 24, 2026
@r0ohafza r0ohafza deleted the r0ohafza/splits-runtime-break branch February 24, 2026 19:08
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.

2 participants