Skip to content

fix: enable contextIsolation by default in Electron#15493

Merged
flotwig merged 2 commits into
7.0-releasefrom
enable-contextIsolation
Mar 17, 2021
Merged

fix: enable contextIsolation by default in Electron#15493
flotwig merged 2 commits into
7.0-releasefrom
enable-contextIsolation

Conversation

@flotwig
Copy link
Copy Markdown
Contributor

@flotwig flotwig commented Mar 15, 2021

  • Closes

User facing changelog

Additional details

  • This became the default with Electron 12, we should follow the defaults as closely as possible.
  • Users can override using before:browser:launch API
  • internal change: contextBridge.exposeInMainWorld must now be used to expose preload APIs, but this only affects the ipc object used by desktop-gui, so it should not affect users: https://www.electronjs.org/docs/tutorial/context-isolation

How has the user experience changed?

PR Tasks

  • [na] Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub?
  • [na] Has a PR for user-facing changes been opened in cypress-documentation?
  • [na] Have API changes been updated in the type definitions?
  • [na] Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Mar 15, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link
Copy Markdown

cypress Bot commented Mar 15, 2021



Test summary

553 0 0 0


Run details

Project cypress
Status Passed
Commit c4ffb3a
Started Mar 15, 2021 11:19 PM
Ended Mar 15, 2021 11:28 PM
Duration 08:34 💡
OS Linux Debian - 10.8
Browser Electron 89

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@flotwig flotwig requested a review from chrisbreiding March 16, 2021 15:26
@flotwig flotwig merged commit fdcf482 into 7.0-release Mar 17, 2021
@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Apr 5, 2021

Released in 7.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v7.0.0, please open a new issue.

@cypress-bot cypress-bot Bot locked as resolved and limited conversation to collaborators Apr 5, 2021
@flotwig flotwig deleted the enable-contextIsolation branch January 24, 2022 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants