feat: add ELECTRON_DISABLE_SANDBOX env var (#16576)
This commit is contained in:
parent
fa5442f211
commit
257de6a963
2 changed files with 9 additions and 0 deletions
|
@ -164,6 +164,9 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
|
||||||
if (env->HasVar("ELECTRON_ENABLE_STACK_DUMPING"))
|
if (env->HasVar("ELECTRON_ENABLE_STACK_DUMPING"))
|
||||||
base::debug::EnableInProcessStackDumping();
|
base::debug::EnableInProcessStackDumping();
|
||||||
|
|
||||||
|
if (env->HasVar("ELECTRON_DISABLE_SANDBOX"))
|
||||||
|
command_line->AppendSwitch(service_manager::switches::kNoSandbox);
|
||||||
|
|
||||||
chrome::RegisterPathProvider();
|
chrome::RegisterPathProvider();
|
||||||
|
|
||||||
#if defined(OS_MACOSX)
|
#if defined(OS_MACOSX)
|
||||||
|
|
|
@ -70,18 +70,24 @@ steps:
|
||||||
python electron/script/verify-ffmpeg.py --source-root "$PWD" --build-dir out/Default --ffmpeg-path out/ffmpeg
|
python electron/script/verify-ffmpeg.py --source-root "$PWD" --build-dir out/Default --ffmpeg-path out/ffmpeg
|
||||||
displayName: Verify non proprietary ffmpeg
|
displayName: Verify non proprietary ffmpeg
|
||||||
timeoutInMinutes: 5
|
timeoutInMinutes: 5
|
||||||
|
env:
|
||||||
|
ELECTRON_DISABLE_SANDBOX: 1
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd src
|
cd src
|
||||||
python electron/script/verify-mksnapshot.py --source-root "$PWD" --build-dir out/Default
|
python electron/script/verify-mksnapshot.py --source-root "$PWD" --build-dir out/Default
|
||||||
displayName: Verify mksnapshot
|
displayName: Verify mksnapshot
|
||||||
timeoutInMinutes: 5
|
timeoutInMinutes: 5
|
||||||
|
env:
|
||||||
|
ELECTRON_DISABLE_SANDBOX: 1
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd src
|
cd src
|
||||||
./out/Default/electron electron/spec --ci --enable-logging
|
./out/Default/electron electron/spec --ci --enable-logging
|
||||||
displayName: 'Run Electron tests'
|
displayName: 'Run Electron tests'
|
||||||
timeoutInMinutes: 10
|
timeoutInMinutes: 10
|
||||||
|
env:
|
||||||
|
ELECTRON_DISABLE_SANDBOX: 1
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue