Open Bug 1662678 Opened 4 years ago Updated 2 years ago

firefox headless mode will crash in docker if --remote-debugging-port is specified

Categories

(Firefox :: Headless, defect)

80 Branch
defect

Tracking

()

UNCONFIRMED

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.

Component: Untriaged → Headless

It seems to work for me if I specify a profile. e.g.

mkdir prof
firefox --headless --remote-debugging-port 9222 -P prof
Severity: -- → S3
Flags: needinfo?(ys)

Clear a needinfo that is pending on an inactive user.

For more information, please visit auto_nag documentation.

Flags: needinfo?(ys)
You need to log in before you can comment on or make changes to this bug.