You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When CLI parameters are used in Bash, web-ext works and open Chromium with the correct parameters.
When CLI parameters are provided from a web-ext-config.js file, web-ext always try to open Firefox.
git clone https://github.com/MrChocolatine/web-ext-issue-Chromium
cd web-ext-issue-Chromium
Install dependencies
npm i
Call web-ext, with some CLI parameters, from a local shell file
npm run run
This opens the browser Chromium, with https://github.com loaded in a tab.
Call web-ext locally
./node_modules/.bin/web-ext run
Parameters are not processed and web-ext tries to open Firefox.
See the errors log
➜ ./node_modules/.bin/web-ext run
Applying config files: ./package.json, ./web-ext-config.js
[program.js][info] Version: 6.5.0
[cmd/run.js][info] Running web extension from /Users/MY_USER/Dev/web-extensions/test/src
[util/manifest.js][debug] Validating manifest at /Users/MY_USER/Dev/web-extensions/test/src/manifest.json
[extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[firefox/index.js][debug] Running Firefox with profile at /Applications/code-portable-data/tmp/firefox-profileqnKXbu/
Error: spawn /Applications/Firefox.app/Contents/MacOS/firefox-bin ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Call web-ext globally
web-ext run
Parameters are not processed and web-ext tries to open Firefox.
See the errors log
➜ web-ext run
Applying config files: ./package.json, ./web-ext-config.js
[program.js][info] Version: 6.5.0
[cmd/run.js][info] Running web extension from /Users/MY_USER/Dev/web-extensions/test/src
[util/manifest.js][debug] Validating manifest at /Users/MY_USER/Dev/web-extensions/test/src/manifest.json
[extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[firefox/index.js][debug] Running Firefox with profile at /Applications/code-portable-data/tmp/firefox-profileemKSzz/
Error: spawn /Applications/Firefox.app/Contents/MacOS/firefox-bin ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
What is the expected or desired behaviour?
I expect the parameters run.target and run.chromiumBinary to work as expected in the file web-ext-config.js.
Version information (for bug reports)
Firefox version: none
Chromium version: Version 92.0.4515.131 (Official Build, ungoogled-chromium) (x86_64)
The text was updated successfully, but these errors were encountered:
MrChocolatine
changed the title
Chromium is not opened despite binary path provided
Chromium is not opened despite binary path provided in web-ext-config.jsOct 14, 2021
I can confirm my file web-ext-config.js is actually processed by web-ext, when called globally and locally. If I add an unknown key the configuration object:
➜ ./node_modules/.bin/web-ext run
Applying config files: ./package.json, ./web-ext-config.js
s: The config file at /Users/MY_USER/Dev/web-extensions/test/web-ext-config.js specified an unknown option: "customOption"
23:45:17 on master [!] via ⬢ v14.17.6
➜ web-ext run
Applying config files: ./package.json, ./web-ext-config.js
s: The config file at /Users/MY_USER/Dev/web-extensions/test/web-ext-config.js specified an unknown option: "customOption"
Is this a feature request or a bug?
A bug.
What is the current behaviour?
When CLI parameters are used in Bash,
web-ext
works and open Chromium with the correct parameters.When CLI parameters are provided from a
web-ext-config.js
file,web-ext
always try to open Firefox.Repo for the demonstration:
https://github.com/MrChocolatine/web-ext-issue-Chromium
web-ext
, with some CLI parameters, from a local shell fileThis opens the browser Chromium, with
https://github.com
loaded in a tab.web-ext
locallyParameters are not processed and
web-ext
tries to open Firefox.See the errors log
web-ext
globallyParameters are not processed and
web-ext
tries to open Firefox.See the errors log
What is the expected or desired behaviour?
I expect the parameters
run.target
andrun.chromiumBinary
to work as expected in the fileweb-ext-config.js
.Version information (for bug reports)
The text was updated successfully, but these errors were encountered: