New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 740343 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

starting chrome headless in repl mode gives an infinite output of {"result":{"type":"undefined"}}

Reported by r.oussa...@gmail.com, Jul 8 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36

Steps to reproduce the problem:
1. google-chrome --headless --disable-gpu --repl https://www.chromestatus.com/
2. 
3. 

What is the expected behavior?
[0608/112805.245285:INFO:headless_shell.cc(278)] Type a Javascript expression to evaluate or "quit" to exit.
>>> location.href
{"result":{"type":"string","value":"https://www.chromestatus.com/features"}}
>>> quit

What went wrong?
infinite output of {"result":{"type":"undefined"}}

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.104  Channel: stable
OS Version: 16.04
Flash Version:
 
google-chrome is pointing to /usr/bin/google-chrome

When I do /opt/google/chrome/chrome --headless --disable-gpu --repl https://www.chromestatus.com/ 
everything is fine, am I not supposed to run it by google-chrome wrapper ?
 Issue 740407  has been merged into this issue.
Components: Blink>Internals
Status: Available (was: Unconfirmed)
Thanks, I've repro this in http://www.example.com as well in versions 59 and 61. 

Components: -Blink>Internals Internals>Headless
Owner: dvallet@chromium.org
I just realized that the google-chrome wrapper sanitizes the input/output of chrome, so the repl script doesn't work correctly using it.  

tail  /opt/google/chrome/google-chrome

# Make sure that the profile directory specified in the environment, if any,
# overrides the default.
if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
  # Note: exec -a below is a bashism.
  exec -a "$0" "$HERE/chrome"  \
    --user-data-dir="$CHROME_USER_DATA_DIR" "$@"
else
  exec -a "$0" "$HERE/chrome"  "$@"
fi

As you said, running /opt/google/chrome/chrome should do the trick

Status: WontFix (was: Available)
WAI

Sign in to add a comment