From 36b03fc65ec7b7c3925b548cda20c7173fe4265f Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Sun, 21 Apr 2019 12:58:25 +0200 Subject: [PATCH] chore: remove deprecated app.enableMixedSandbox() --- docs/api/breaking-changes.md | 9 +++++++++ docs/api/chrome-command-line-switches.md | 5 +++++ lib/browser/api/app.ts | 5 +---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/api/breaking-changes.md b/docs/api/breaking-changes.md index e0e5298fb3cbb..210e452157a8b 100644 --- a/docs/api/breaking-changes.md +++ b/docs/api/breaking-changes.md @@ -81,6 +81,15 @@ powerMonitor.querySystemIdleTime(callback) const idleTime = getSystemIdleTime() ``` +## `app.enableMixedSandbox` + +```js +// Deprecated +app.enableMixedSandbox() +``` + +Mixed-sandbox mode is now enabled by default. + ## Preload scripts outside of app path are not allowed For security reasons, preload scripts can only be loaded from a subpath of the [app path](app.md#appgetapppath). diff --git a/docs/api/chrome-command-line-switches.md b/docs/api/chrome-command-line-switches.md index 41b77a162aea2..1ce2762cebb8a 100644 --- a/docs/api/chrome-command-line-switches.md +++ b/docs/api/chrome-command-line-switches.md @@ -181,6 +181,11 @@ logging level for all code in the source files under a `foo/bar` directory. This switch only works when `--enable-logging` is also passed. +## --no-sandbox + +Disables Chromium sandbox, which is now enabled by default. +Should only be used for testing. + [app]: app.md [append-switch]: app.md#appcommandlineappendswitchswitch-value [ready]: app.md#event-ready diff --git a/lib/browser/api/app.ts b/lib/browser/api/app.ts index 0d6110e4ceb17..494a5fae9da7d 100644 --- a/lib/browser/api/app.ts +++ b/lib/browser/api/app.ts @@ -32,10 +32,7 @@ Object.assign(app, { getSwitchValue: (theSwitch: string) => commandLine.getSwitchValue(String(theSwitch)), appendSwitch: (theSwitch: string, value?: string) => commandLine.appendSwitch(String(theSwitch), typeof value === 'undefined' ? value : String(value)), appendArgument: (arg: string) => commandLine.appendArgument(String(arg)) - } as Electron.CommandLine, - enableMixedSandbox () { - deprecate.log(`'enableMixedSandbox' is deprecated. Mixed-sandbox mode is now enabled by default. You can safely remove the call to enableMixedSandbox().`) - } + } as Electron.CommandLine }) // we define this here because it'd be overly complicated to