From 33abd736e97a0805a1004934a2c6cdf0b6bb62eb Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 10 Oct 2018 16:36:18 +1100 Subject: [PATCH] chore: add deprecation notice for webPrefences defaults (#15045) --- docs/api/breaking-changes.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api/breaking-changes.md b/docs/api/breaking-changes.md index 2dd35b3d25d6..6ed5394a3de5 100644 --- a/docs/api/breaking-changes.md +++ b/docs/api/breaking-changes.md @@ -6,6 +6,18 @@ Breaking changes will be documented here, and deprecation warnings added to JS c The `FIXME` string is used in code comments to denote things that should be fixed for future releases. See https://github.com/electron/electron/search?q=fixme +# Planned Breaking API Changes (5.0) + +## `new BrowserWindow({ webPreferences })` + +The following `webPreferences` option default values are deprecated in favor of the new defaults listed below. + +| Property | Deprecated Default | New Default | +|----------|--------------------|-------------| +| `contextIsolation` | `false` | `true` | +| `nodeIntegration` | `true` | `false` | +| `webviewTag` | `nodeIntegration` if set else `true` | `false` | + # Planned Breaking API Changes (4.0)