Repository: deno
Issue: Deno is not able to run npm:web-ext to run firefox extension
Labels: bug,needs investigation,node compat

Version: Deno 2.1.1

Deno is not able to run web-ext to execute a firefox extension. It seems like failing in the connection retry process.
There is no problem when deno run web-ext to spin up a chrome extension.

✔️ `deno run -A npm:web-ext run --target=chromium -s ./dist/chrome`
❌ `deno run -A npm:web-ext run -s ./dist/firefox`

Here's the detail logs for web ext runner to run firefox extension.
```
deno-webext-starter on  main [!?] via 🦕 v2.1.1 via  v23.3.0 on ☁️   took 10s 
❯ deno run -A npm:web-ext run -s dist/firefox --verbose --no-config-discovery
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/program.js][info] Version:
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/program.js][debug] Not discovering config files
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/cmd/run.js][info] Running web extension from /<path>/deno-webext-starter/dist/firefox
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/util/manifest.js][debug] Validating manifest at /<path>/deno-webext-starter/dist/firefox/manifest.json
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/index.js][debug] Running Firefox with profile at /var/folders/5x/m56tp_7x1f54q12shdvx_jh80000gq/T/firefox-profileAcETEx/
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/index.js][debug] Executing Firefox binary: /Applications/Firefox.app/Contents/MacOS/firefox
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/index.js][debug] Firefox args: -start-debugger-server 61034 -foreground -no-remote -profile /var/folders/5x/m56tp_7x1f54q12shdvx_jh80000gq/T/firefox-profileAcETEx/
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/index.js][info] Use --verbose or --devtools to see logging
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/remote.js][debug] Connecting to the remote Firefox debugger
[/Users/<user>/Library/Caches/deno/npm/registry.npmjs.org/web-ext/8.3.0/lib/firefox/remote.js][debug] Connecting to Firefox on port 61034
error: Uncaught Error: connect ECONNREFUSED 127.0.0.1:61034
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
    at __node_internal_exceptionWithHostPort (ext:deno_node/internal/errors.ts:217:10)
    at TCPConnectWrap._afterConnect [as oncomplete] (node:net:172:16)
    at TCP.afterConnect (ext:deno_node/internal_binding/connection_wrap.ts:43:11)
    at ext:deno_node/internal_binding/tcp_wrap.ts:306:14
    at eventLoopTick (ext:core/01_core.js:175:7)
```

There is no problem when executing web-ext script with npx

```
deno-webext-starter on  main [!?] via 🦕 v2.1.1 via  v23.3.0 on ☁️   
❯ npx web-ext run -s dist/firefox --verbose --no-config-discovery
(node:56043) ExperimentalWarning: CommonJS module /usr/local/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/local/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/program.js][info] Version:
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/program.js][debug] Not discovering config files
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/cmd/run.js][info] Running web extension from /<path>/deno-webext-starter/dist/firefox
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/manifest.js][debug] Validating manifest at /<path>/deno-webext-starter/dist/firefox/manifest.json
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][debug] Running Firefox with profile at /var/folders/5x/m56tp_7x1f54q12shdvx_jh80000gq/T/firefox-profilesoLrue/
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][debug] Executing Firefox binary: /Applications/Firefox.app/Contents/MacOS/firefox
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][debug] Firefox args: -start-debugger-server 60895 -foreground -no-remote -profile /var/folders/5x/m56tp_7x1f54q12shdvx_jh80000gq/T/firefox-profilesoLrue/
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][info] Use --verbose or --devtools to see logging
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to the remote Firefox debugger
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (2); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (3); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (4); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][debug] Firefox stdout: Started devtools server on 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (5); connection error: Error: connect ECONNREFUSED 127.0.0.1:60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] Connected to the remote Firefox debugger on port 60895
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/index.js][debug] Firefox stderr: UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][debug] installTemporaryAddon: {"addon":{"id":"email@deno-webext-starter.io","actor":false},"from":"server1.conn0.addonsActor2"}
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/firefox/remote.js][info] Installed /<path>/deno-webext-starter/dist/firefox as a temporary add-on
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/cmd/run.js][info] The extension will reload if any source file changes
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/*.xpi with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/*.xpi
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/*.zip with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/*.zip
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/.* with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/.*
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/.*/**/* with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/.*/**/*
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/node_modules with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/node_modules
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/util/file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir /<path>/deno-webext-starter/dist/firefox to /<path>/deno-webext-starter/dist/firefox/**/node_modules/**/*
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/watcher.js][debug] Watching /<path>/deno-webext-starter/dist/firefox for changes
[/<path>/deno-webext-starter/node_modules/.deno/web-ext@8.3.0/node_modules/web-ext/lib/extension-runners/index.js][info] Press R to reload (and Ctrl-C to quit)
```