web-ext
web-ext copied to clipboard
Add Edge to `run`
Is this a feature request or a bug?
Feature
What is the current behavior?
run only supports Chrome and Firefox
What is the expected or desired behavior?
Add Edge to run
Is this a feature request or a bug?
Feature
What is the current behavior?
run only supports Chrome and Firefox
What is the expected or desired behavior?
Add Edge to
run
Run supports all chromium based browsers by specifying such target which includes Edge, Opera... etc.
--target supports chromium, firefox-desktop, firefox-android, but not Edge
It does by specifying the --target as chromium and specifying --chromium-binary to the path of your Edge binary. I guess you are saying the current Edge, the legacy Edge is not supported.
Very cool, this works nicely:
web-ext run --no-config-discovery --start-url URL --verbose --target chromium --source-dir build/chrome-mv3-dev --chromium-binary "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe"
Adding such an example snippet to the documentation and/or README would be very useful
Sure, especially since there are developers who might think chromium only relates to chrome although the chromium-binary doc already says so. But anyway, since this is a open-source repo suggest you do an issue/pull-request to improve the documentation to include this use-case.
Does it work the same way on Linux/macOS? I.e. I provide the binary location?
I'm pretty sure it does since the documentation does not mention any specific OS (but I cannot personally confirm)
Patches are welcome. Preferably depending on either an official Microsoft-owned package to handle the path detection, or just embedding the OS-specific paths in this web-ext project itself, without any other dependencies.
I've been working on OSX and specifying my own browser using --firefox=/Application/browser.app/Contents/MacOS/binary, but (obviously) that fails on Linux. On Linux, it is easier since I can just use PATH, and specify --firefox=binary, but that doesn't seem to be 'the way' for OSX.
Is there a way to specify different values for --firefox per platform? Perhaps it is via the ENV? [EDIT: indeed setting WEB_EXT_FIREFOX in my shell 'rc' (different for each platform), and removing the option completely in my package.json, does the job :)]