Giter Club home page Giter Club logo

Comments (3)

bcardarella avatar bcardarella commented on June 17, 2024 1

Wait for stdout message that has a format of

I don't think this is a viable option. Headless outputs everything to stderr. I logged a bug about this last week and it was marked as wontfix

https://bugs.chromium.org/p/chromium/issues/detail?id=773572&can=1&q=stderr&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

from chrome-launcher.

andrewvy avatar andrewvy commented on June 17, 2024

Looks like there is already discussion of "pre-opening a socket" before exec a chrome instance, and then passing it in as an option at startup: https://bugs.chromium.org/p/chromium/issues/detail?id=624837

Though, I'm not sure if erlexec is able to handle this.

Additional docs: https://unix.stackexchange.com/questions/248408/file-descriptors-across-exec


Actually, there's a hackier workaround if ^ doesn't work. (Comment #4)

from chrome-launcher.

andrewvy avatar andrewvy commented on June 17, 2024

Some options:

  • Wait for stdout message that has a format of DevTools listening on 127.0.0.1:9222, then poll. (This is what puppeteer does, not sure why it's a separate implementation from chrome-launcher)

  • Wait for DevToolsActivePort file to get created in --user-data-dir, then poll.

  • Figure out how to pass file descriptors // pre-open socket and pass it into chrome

from chrome-launcher.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.