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

fix: emit IPC event in correct context if isolation and sandbox enabled #18668

Merged
merged 1 commit into from Jun 6, 2019

Conversation

miniak
Copy link
Contributor

@miniak miniak commented Jun 6, 2019

Description of Change

Backport of #16352

Checklist

Release Notes

Notes: Fixed delivery of IPC events to renderer processes when both contextIsolation and sandbox are enabled.

…ed (#16352)

* fix: emit IPC event in correct context if isolation and sandbox enabled

IPC events were not being delivered to renderer processes when both
`contextIsolation` and `sandbox` were enabled. This is because the
`AtomSandboxedRenderFrameObserver` class was incorrectly using the
`MainWorldScriptContext`, rather than conditionally selecting the
context based on if isolation was enabled.

Fixes #11922
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 6, 2019
@miniak miniak added 3-1-x backport This is a backport PR labels Jun 6, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 6, 2019
@deepak1556 deepak1556 requested a review from a team June 6, 2019 10:46
@ckerr ckerr merged commit 516233c into 3-1-x Jun 6, 2019
@release-clerk
Copy link

release-clerk bot commented Jun 6, 2019

Release Notes Persisted

Fixed delivery of IPC events to renderer processes when both contextIsolation and sandbox are enabled.

@ckerr ckerr deleted the miniak/context-isolation-sandbox-3-1-x branch June 6, 2019 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3-1-x backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants