Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfc: Preload Realm for Service Workers #4

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

samuelmaddock
Copy link
Member

@samuelmaddock samuelmaddock commented Jan 11, 2024

Preload realms provide an isolated context to run JavaScript prior to code evaluating in another
context. This expands functionality of Electron's preload scripts to provide new context targets.
This proposal intends to target Service Worker contexts with potential plans for new contexts (web
workers, shared workers) in future proposals.

Read rendered document

If you're curious, there's a very rough wip prototype being written in https://github.com/samuelmaddock/electron/tree/feat/preload-realm

@lengband
Copy link

Hello, is there any updates? I think Service Worker contexts support loading preload script is a cool propose.This will be able to extend the extension API that electron does not support

@alexi
Copy link

alexi commented May 20, 2024

Also wondering about an update on this. We need modern chrome extensions support in electron, and we currently rely on the electron-chrome-extensions package.

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.

None yet

3 participants