firefox附加SDK cfx工具打开url参数

Teo*_*ahi 3 firefox-addon firefox-addon-sdk

我正在使用Add-on SDK创建firefox扩展,我使用cfx工具来测试和运行附加组件.

当我尝试从命令行运行工具时;

cfx run '-url "www.google.com"'
Run Code Online (Sandbox Code Playgroud)

它确实打开了Firefox但没有导航到google.com.只需打开空白页面,显然它不会运行我的扩展程序.我需要手动导航到一个网址,以触发我的基于JavaScript的扩展.

有没有办法调用cfx工具打开特定网址?

nma*_*ier 6

使用 --binary-args=CMDARGS

传递给二进制文件的其他参数(运行,测试)

(参见cfx run --help其他参数cfx run)

例如以下为我工作:

cfx run --binary-args="-url www.google.com"
Run Code Online (Sandbox Code Playgroud)