Launcher does not work with Firefox 61
See original GitHub issueIt seems like something has changed in Firefox 61 which has resulted in karma-firefox-launcher
to be unable to properly start firefox. The following configuration works fine for firefox 60.
karma.conf
....
browsers: ['FirefoxHeadless'],
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [
'-headless'
],
},
},
....
> ng test --browsers FirefoxHeadless
10% building modules 1/1 modules 0 active(node:70) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
19 07 2018 16:28:03.691:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
19 07 2018 16:28:03.693:INFO [launcher]: Launching browser FirefoxHeadless with unlimited concurrency
19 07 2018 16:28:03.698:INFO [launcher]: Starting browser Firefox
20% building modules 91/105 modules 14 active …s/form-plugin/fesm5/ngxs-form-plugin.js19 07 2018 16:28:05.106:ERROR [launcher]: Cannot start Firefox *** You are running in headless mode.
19 07 2018 16:28:05.107:ERROR [launcher]: Firefox stdout:
19 07 2018 16:28:05.107:ERROR [launcher]: Firefox stderr: *** You are running in headless mode.
24% building modules 120/147 modules 27 active …modules/core-js/modules/_string-trim.js19 07 2018 16:28:05.483:INFO [launcher]: Trying to start Firefox again (1/2).
54% building modules 370/398 modules 28 active …nal/observable/ConnectableObservable.js19 07 2018 16:28:06.468:ERROR [launcher]: Cannot start Firefox
*** You are running in headless mode.
19 07 2018 16:28:06.468:ERROR [launcher]: Firefox stdout:
19 07 2018 16:28:06.469:ERROR [launcher]: Firefox stderr: *** You are running in headless mode.
59% building modules 415/435 modules 20 active …modules/core-js/modules/es6.array.of.js19 07 2018 16:28:06.570:INFO [launcher]: Trying to start Firefox again (2/2).
95% emitting CopyPlugin19 07 2018 16:28:12.559:ERROR [launcher]: Cannot start Firefox
*** You are running in headless mode.
19 07 2018 16:28:12.559:ERROR [launcher]: Firefox stdout:
19 07 2018 16:28:12.559:ERROR [launcher]: Firefox stderr: *** You are running in headless mode.
19 07 2018 16:28:12.681:ERROR [launcher]: Firefox failed 2 times (cannot start). Giving up.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:8
Top Results From Across the Web
Drag and Drop errors with Firefox Launcher Process enabled ...
If the Launcher Process is enabled, you may experience errors when trying to drag and drop an image or URL from Firefox to...
Read more >Firefox on Linux cannot open new windows from a launcher ...
Firefox on Linux cannot open new windows from a launcher, or external links. The error: "Firefox is already running.".
Read more >Developers - Launcher does not work with Firefox 61 - - Bountysource
It seems like something has changed in Firefox 61 which has resulted in karma-firefox-launcher to be unable to properly start firefox.
Read more >ng test is giving error with firefox browser - Stack Overflow
Check your karma config file to see the firefox plugin listed,. plugins : [ 'karma-junit-reporter', 'karma-chrome-launcher', ...
Read more >[Fixed] FirefoxPortable.exe launcher does not remain running ...
This issue is fixed in Firefox Portable Nightly 61 which is currently mirroring for download. This bug will remain open for tracking until ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to fix the issue in our Dockerfile with Alpine. It seems the
ttf-freefont
package needs to be installed, otherwise Firefox will exit with a segfault.You might want to give https://hub.docker.com/r/timbru31/node-alpine-firefox/ a try.
Update using the Firefox on my macOS works fine, while the alpine version is broken for us (https://pkgs.alpinelinux.org/package/edge/testing/x86_64/firefox)