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

Closed
wants to merge 10 commits into 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

Recommended prerequisite readings:

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.

text/0002-preload-realm.md Show resolved Hide resolved
text/0002-preload-realm.md Show resolved Hide resolved
@erickzhao erickzhao added the pending-review Waiting for reviewers to give feedback on the PR specifications label Jul 12, 2024
@RitvarsZ
Copy link

RitvarsZ commented Aug 5, 2024

Any updates on this? This is a showstopper for our project right now, would love to see this implemented.

@samuelmaddock
Copy link
Member Author

GitHub is stuck on "Processing updates", attempting to close and reopen to fix this.

@samuelmaddock
Copy link
Member Author

samuelmaddock commented Aug 6, 2024

welp

Screenshot 2024-08-06 at 10 19 03 AM

Moved to #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-review Waiting for reviewers to give feedback on the PR specifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants