diff --git a/.travis.yml b/.travis.yml index f3b981ddbfd..21b16050c6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ node_js: - "7" dist: trusty env: - - DISABLE_CHROMIUM_SANDBOX=true cache: yarn: true directories: diff --git a/lib/Browser.js b/lib/Browser.js index c8a7f922fb8..e6452462706 100644 --- a/lib/Browser.js +++ b/lib/Browser.js @@ -51,8 +51,6 @@ class Browser { `--disable-gpu`, ]); } - if (process.env['DISABLE_CHROMIUM_SANDBOX']) - this._chromeArguments.push('--no-sandbox'); if (typeof options.executablePath === 'string') { this._chromeExecutable = options.executablePath; } else { diff --git a/phantom_shim/runner.js b/phantom_shim/runner.js index 19842223154..87d25fdd0d7 100755 --- a/phantom_shim/runner.js +++ b/phantom_shim/runner.js @@ -59,6 +59,7 @@ if (!fs.existsSync(scriptPath)) { var browser = new Browser({ remoteDebuggingPort: 9229, headless: argv.headless, + args: ['--no-sandbox'] }); var context = createPhantomContext(browser, scriptPath, argv); diff --git a/test/test.js b/test/test.js index 417f2555554..5eb330dcccf 100644 --- a/test/test.js +++ b/test/test.js @@ -31,7 +31,7 @@ describe('Puppeteer', function() { var page; beforeAll(function() { - browser = new Browser(); + browser = new Browser({args: ['--no-sandbox']}); staticServer = new StaticServer(path.join(__dirname, 'assets'), PORT); GoldenUtils.removeOutputDir(); });