Comments (9)
This flag is still in use in the Chromium codebase AFAICT, so we would like to continue supporting it, but we've added ignoreDefaultFlags
as a way to disable other default flags in chrome-launcher
that doesn't yet affect this one.
If anyone would like to submit a PR that adds a check for ignoreDefaultFlags
to
chrome-launcher/src/chrome-launcher.ts
Lines 150 to 152 in e67a10d
I think that sounds good! 👍
from chrome-launcher.
AFAIk this flag IS used: https://cs.chromium.org/search/?q=kDisableSetuidSandbox&sq=package:chromium&type=cs
See the zygote_host_impl_linux.cc
results.
from chrome-launcher.
Hi guys,
I need to launch a headless chrome without this flag to run my tests.
There is any particular reason to this flag be obligatory on Linux?
from chrome-launcher.
This flag would cause this error and cannot launch chrome
27907:27907:0205/194525.657250:FATAL:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
[1] 27907 abort /usr/bin/google-chrome-stable --disable-translate --disable-extensions
from chrome-launcher.
Any reason why @samccone's commit wasn't merged? I'd love to get rid of this annoying warning 🤔
from chrome-launcher.
@calebeby see #68 (comment), if you'd like to be the one to pick it up, be our guest :)
from chrome-launcher.
@patrickhulce I'm not sure I completely understand the relation between this issue and the linked PR. If I submitted a PR that just removed the --disable-setuid-sandbox
flag, but didn't do anything else related to Alpine linux, would that be accepted?
from chrome-launcher.
any update on this?
from chrome-launcher.
I have found a workaround for this on Linux.
You can use the ignoreDefaultFlags
setting as follows:
const ChromeLauncher = require('chrome-launcher');
var flags = ChromeLauncher.Launcher.defaultFlags();
// optional: filter out flags
// Eg. Enabling extensions and Audio
// flags = flags.filter(flag => flag !== '--disable-extensions' && flag !== '--mute-audio')
// optional: Add you own flags
// flags.push('--proxy-server=192.168.101.200:8213')
ChromeLauncher.launch({
startingUrl: ''
,userDataDir: '/dpool/vcmain/sys/chrome/profiles/CORP_DEV_LOCAL'
,ignoreDefaultFlags: true
,chromeFlags: flags
}).then(chrome => {
console.log(`Chrome debugging port running on ${chrome.port}`);
});
from chrome-launcher.
Related Issues (20)
- how to start chrome in kiosk mode? HOT 1
- process.env.PROGRAMFILES is error
- Inconsistent Chromium detection in cross platform
- Reporting unsuccessful exit code
- crash when launch with remote debugging pipe
- Reuse an existing window HOT 1
- RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3055630622) is greater than 2 GiB
- Chrome launcher wont launch HOT 1
- Beta and Dev channels are not detected
- igmore
- /Users/sample/node_modules/chrome-launcher/dist/chrome-finder.js:14 const log = require('lighthouse-logger'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 1
- Unknown error when ChromeLauncher.launch() in worker thread HOT 1
- Version v0.15.2 and kill chrome instance HOT 3
- Update readme for 1.0.0: ERR_REQUIRE_ESM
- `prefs` option doesn't work HOT 3
- Issue determining temp dir path HOT 1
- flag for setting useragentdata
- How to access environments variable with JS in chrome?
- move the red error dot to the console tab where it belongs HOT 1
- Add `--enable/disable-features=ChromeRootStoreUsed` flag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-launcher.