我正在尝试开发Firefox添加。
按照Mozilla说明here,我已经安装并激活了他们的SDK。
然后,我创建了一个新目录cd
,并运行cd init
进行初始化。输出是:
- 创建了lib目录
- 创建数据目录
- 创建测试目录
- 自动生成jID:jid1-lobtqQKBC2PgyA
- package.json写的
- test / test-main.js写的
- lib / main.js写的
您的示例插件现已准备就绪 做" cfx测试"测试它和" cfx run"尝试一下。玩得开心!
到目前为止,这么好(尽管输出并不像他们的例子)。然后我尝试运行:cfx test
,我得到以下内容:
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
Running tests on Firefox 34.0/Gecko 34.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86.
.console.error: x:
fail:
There was an uncaught Promise rejection: JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Prom
ise-backend.js :: PendingErrors.register :: line 159
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.comple
tePromise :: line 672
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process
:: line 868
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walker
Loop :: line 744
native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0
console.trace: x:
_ecated/unit-test.js 96 fail
_ecated/unit-test.js 61 TestRunner.prototype._uncaughtErrorObserver
_/Promise-backend.js 197 PendingErrors.report
_/Promise-backend.js 209 PendingErrors.flush
_/Promise-backend.js 611 Promise.Debugging.flushUncaughtErrors
_ecated/unit-test.js 306 done
_ecated/unit-test.js 529 start
_ecated/unit-test.js 491 runNextTest
_ecated/unit-test.js 496 startMany
_ecated/unit-test.js 26 findAndRunTests/<
_/Promise-backend.js 865 Handler.prototype.process
_/Promise-backend.js 744 this.PromiseWalker.walkerLoop
0
.
2 of 3 tests passed.
LdrLoadDll: Blocking load of 'hook.dll' -- see http://www.mozilla.com/en-US/blocklist/
Total time: 1.816000 seconds
Program terminated unsuccessfully.
我不确定这个hook.dll文件是什么,为什么它失败了,或者与Mozilla阻止列表的关系是什么(无法找到它页)。
任何有助于解决此错误的帮助或见解将不胜感激。我在Windows 7 Pro,64位操作系统上有帮助。