Search code examples
firefox-addonfirefox-addon-sdk

firefox Add-on SDK cfx tool open url parameter


I am creating firefox extension by using Add-on SDK, I am using cfx tool to test and run add-on.

When I try to run tool from command line like;

cfx run '-url "www.google.com"'

it does open firefox but not navigating to google.com. Just opens blank page and obviously it does not run my extension. I need to navigate manually to a url to trigger my javascript-based extension.

Is there any way to call cfx tool to open a specific url?


Solution

  • Use --binary-args=CMDARGS

    additional arguments passed to the binary (run, test)

    (See cfx run --help for additional arguments to cfx run)

    E.g. the following works for me:

    cfx run --binary-args="-url www.google.com"