Adding Post Message Support on WebGL for Cross-Origin Comms
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Currently, the only way to communicate with the webview on WebGL, is using EvaluateJS
This is problematic, because running.eval on the iframe that the webview creates, is blocked by browser when applied on cross-origin frames.
A safe and common way to get around this is to post messages to the iframe instead.
It would be great for the WebGL version to have support for post message, so that communication between game and cross-origin frames can occur
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the WebGL path that currently relies on EvaluateJS and identify how the webview iframe is created. Determine the post-message interface needed for communication with cross-origin frames, then verify that the WebGL version supports the requested game-to-frame communication without relying on cross-origin evaluation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- unity
- Domain
- game-dev, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100