firefox headless mode will crash in docker if --remote-debugging-port is specified
Categories
(Firefox :: Headless, defect)
Tracking
()
People
(Reporter: ys, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Steps to reproduce:
$ docker run --rm -it --init -p 9333:9333 alpine sh
$ apk add firefox --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
$ firefox --headless --remote-debugging-port 9222
Actual results:
*** You are running in headless mode.
firefox: unable to start remote agent: unavailable
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Segmentation fault
Expected results:
Should print the ws url like below:
*** You are running in headless mode.
DevTools listening on ws://localhost:9333/devtools/browser/b101c080-de31-9a4a-89dd-46bb20f75f7c
If you run "firefox --headless" alone, it will work without crashing.
Comment 2•4 years ago
|
||
It seems to work for me if I specify a profile. e.g.
mkdir prof
firefox --headless --remote-debugging-port 9222 -P prof
Comment 3•2 years ago
|
||
Clear a needinfo that is pending on an inactive user.
For more information, please visit auto_nag documentation.
Description
•