Skip to content

Conversation

@itsananderson
Copy link
Member

Manual backport of #28223

Description of Change

With contextIsolation enabled by default in Electron 12, the Getting Started Guide no longer works as it is written. In order for the basic example to display values from process.versions, this change adds a preload.js to the example.

Adding a preload script does increase the complexity of the "hello world" example, but setting contextIsolation: false in the example code seemed like a less ideal solution since it encourages insecure practices

Checklist

  • PR description included and stakeholders cc'd
  • relevant documentation is changed or added

Release Notes

Notes: no-notes

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 17, 2021
@trop trop bot added 12-x-y backport This is a backport PR semver/none labels Mar 17, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 17, 2021
With `contextIsolation` enabled by default in Electron 12, the Getting Started Guide no longer works as it is written. In order for the basic example to display values from `process.versions`, we need to add a `preload.js` to the example.
@zcbenz zcbenz merged commit 7b21bc5 into electron:12-x-y Mar 18, 2021
@release-clerk
Copy link

release-clerk bot commented Mar 18, 2021

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants