Skip to content

Feature/contextbridge exposeinmainworld#34

Open
Arroquw wants to merge 5 commits into
masterfrom
feature/contextbridge_exposeinmainworld
Open

Feature/contextbridge exposeinmainworld#34
Arroquw wants to merge 5 commits into
masterfrom
feature/contextbridge_exposeinmainworld

Conversation

@Arroquw

@Arroquw Arroquw commented Feb 14, 2026

Copy link
Copy Markdown
Owner

took a lot of fiddling and a bit of vibe coding to get this working. Probably needs a lot of refactoring, but in this state it works.

Tested with clue trainer, clue solver

Also, a lot of plugins rely on setting window.alt1.events, so converting it as is to use exposeInMainWorld was impossible, since that makes the entire window.alt1 object immutable. I opted for a hybrid approach, but there's probably better solutions that I don't know of?

Fixes #30

@brendenhoffman

Copy link
Copy Markdown
Collaborator

When I test this, what does it do exactly? I'm unfamiliar with this feature.

@Arroquw

Arroquw commented Feb 19, 2026

Copy link
Copy Markdown
Owner Author

The main takeaway here is security changes and the TODO that skillbert left. Basically it should work exactly as before, but now we're using isolated contexts, meaning that the renderer window has no access to the other windows' JS for instance.

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.

use contextBridge.exposeInMainWorld

2 participants