MetaMask / MetaMask/snaps

Research solution for providing iframe URL to offscreen execution environment

Open
#1,112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
853
Forks
662
Avg merge
2d 8h
Merged PRs (30d)
8

Description

Currently we wrap each stream message with the iframe URL to the offscreen execution environment:

https://github.com/MetaMask/snaps-monorepo/blob/c7cf8b19a6c2570377f4f5163bfb0a035941c145/packages/snaps-controllers/src/services/offscreen/OffscreenPostMessageStream.ts#L65-L74

Ideally we have a better solution, allowing the extension to configure the iframe URL, without adding it to each stream message.

Contributor guide

Open the contributing guide

Research direction

Start with packages/snaps-controllers/src/services/offscreen/OffscreenPostMessageStream.ts at the linked lines where each stream message is wrapped with the iframe URL. Investigate how the extension could configure that URL separately from stream messages. Done means documenting and validating a concrete approach that removes the per-message URL requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.