Open imiric opened 2 years ago
@imiric,
It opens up a browser that hangs on "about:blank" and sometime after results in:
ERRO[0001] Failed to launch 'localhost:3000/' because the scheme does not have a registered handler. browser_source=other line_number=0 source=browser stacktrace="<nil>" url="about:blank"
ERRO[0031] timed out
at reflect.methodValueCall (native)
at file:///Users/inanc/grafana/tests/schemaless249.js:11:2(24)
at native executor=per-vu-iterations scenario=default source=stacktrace
Suspicious logline:
TRAC[0001] <- {"method":"Log.entryAdded",
"params":{
"entry":{
"source":"other"
"level":"error",
"text":"Failed to launch 'localhost:3000/' because the scheme does not have a registered handler.",
"timestamp":1.645082371531539e+12,
"url":"about:blank"
}},
"sessionId":"7C25323FD0D16F96B2388A2E82031581"}
category="cdp:recv" elapsed="0 ms" goroutine=27
On current
main
(917b83e) on Linux and Chromium 97, running the following script:... results in a prompt to handle the URL with
xdg-open
:Regardless if the prompt is dismissed or not, the test ends after ~30s with a
NavigateFrame
timeout:I'm not sure what the behavior is on other OSs. @inancgumus can you confirm what happens on macOS?
Regardless, we should handle this gracefully, maybe similarly how k6 handles it for
http.get('localhost:3000')
:Or at least to pass it directly to Chrome and bypass the prompt, since browsers will default to
http://
anyway.It also might be a security issue if someone crafts a clever URL-like string that actually opens a file or runs a binary on the system, depending on
xdg-open
oropen
default configuration I guess.