Skip to content

Commit

Permalink
docs: update breaking changes language (#41399)
Browse files Browse the repository at this point in the history
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
  • Loading branch information
trop[bot] and VerteDinde committed Feb 21, 2024
1 parent 94e643a commit 310598c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ If so, that logic will no longer be needed in Electron 30 as autoresizing behavi

### Behavior Changed: `ipcRenderer` can no longer be sent over the `contextBridge`

Attempting to send `ipcRenderer` as an object over the `contextBridge` will now result in
Attempting to send the entire `ipcRenderer` module as an object over the `contextBridge` will now result in
an empty object on the receiving side of the bridge. This change was made to remove / mitigate
a security footgun, you should not directly expose ipcRenderer or it's methods over the bridge.
Instead provide a safe wrapper like below:
a security footgun. You should not directly expose ipcRenderer or its methods over the bridge.
Instead, provide a safe wrapper like below:

```js
contextBridge.exposeInMainWorld('app', {
Expand Down

0 comments on commit 310598c

Please sign in to comment.