Comments (3)
From @gwuhaolin on June 30, 2017 6:32
I rewrite chrome-launcher with this feature, see chrome-runner.
from chrome-launcher.
From @paulirish on June 30, 2017 17:44
Hi @gwuhaolin! Very sorry for not responding to your issue. I really appreciate you filing a ticket. :)
I read your blog post at gwuhaolin/blog#7 and its really interesting. Very cool.
I've been looking at chrome-runner and like what you did with it. 👍 I'd love to help incorporate your improvements back into chrome-launcher, if you're interested.
I was looking at the source and noticed a few things:
- I saw you added
'--disable-suggestions-ui'
. I didn't know this but I looked it up and from what I can tell it's an iOS-only feature, so I don't think it matters: https://codereview.chromium.org/2643753002/ - You also added
'--disable-speech-api',
which kills off https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API - The
handleChromeUnexpectedExit
is really great and launcher should definitely have it. Are you okay if I copy your implementation back to chrome-launcher? - I have a PR for launcher that adds retries if Chrome's debug port doesn't appear to be open. This also fixes a bug where the
.on('SIGINT')
handler was being bound for every launch, which node.js doesn't like and warns about.
how does all that sound?
from chrome-launcher.
From @gwuhaolin on July 1, 2017 9:57
@paulirish It's a pleasure to be appreciated by you.😊
I have taken your advice remove flags --disable-suggestions-ui --disable-speech-api
in chrome-runner.
chrome-runner's goal is:
- just a lib to launch chrome, don't mix with other things like
lighthouse-logger
and ask in chrome-launcher. The advantage is that others project can reuse it without encumbrance. - chrome-runner a is separate project not like chrome-launcher is in lighthouse. The advantage is more convenient management and chase issues.
I made a series of chrome related small and reusable tools:
- chrome-finder chrome finder
- chrome-runner run chrome with nodejs
- chrome-pool headless chrome tabs manage pool
- chrome-render general server render base on headless chrome
- chrome-tester web page automatic tester
- koa-seo koa SEO middleware base on headless chrome
If possible I would be honored to transfer their ownership to the GoogleChrome community, because there are more people in the community who can improve them.
chrome-runner(required node7+) has the advantage of comparison with chrome-launcher:
- rewrite with less and simple code in javascript by support typescript
- provide events emit to hook
- also support chrome-launcher supported options
- well unit test and used in products to ensure quality
- well design API and detail doc
If possible to use chrome-runner to replace chrome-launcher in lighthouse, I would like to submit a merge.
from chrome-launcher.
Related Issues (20)
- sandbox utility bwrap remains open after kill or killall HOT 1
- 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
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.