正在尝试测试我正在开发的附加组件,该附加组件在我升级到 Firefox v25 之前一直在工作。然后我开始收到以下错误:
System JS : WARNING chrome://browser/content/tabbrowser.xml:2635
function loadURI does not always return a value
System JS : WARNING chrome://browser/content/tabbrowser.xml:2655
function loadURIWithFlags does not always return a value
当我点击任何东西时,会出现大量的 js 错误。我运行了 cfx testall 并得到了一堆错误。然后我下载了全新安装,但在运行 cfx testall 时仍然出现错误。
我运行的最后一个 cfx testall 的完整结果:http ://www.otherrealm.org/cfxErrorMessages.txt整个错误跟踪太长了,无法放入一个 stackoverflow 问题,但这里是其中的一部分:
(C:\xampp\htdocs\firefoxaddon\addon-sdk-master) C:\xampp\htdocs\firefoxaddon\addon-sdk-master>cfx testall
Testing cfx...
.....................................................................................
----------------------------------------------------------------------
Ran 85 tests in 43.652s
OK
Testing all examples...
Testing annotator...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmpixuz5_.mozrunner'.
Running tests on Firefox 25.0/Gecko 25.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86-msvc.
Error: TypeError: mr.collectReports is not a function
Traceback (most recent call last):
File "resource://extensions.modules.anonid0-annotator-at-jetpack.commonjs.path/sdk/timers.js", line 40, in notify
callback.apply(null, args);
File "resource://extensions.modules.anonid0-annotator-at-jetpack.commonjs.path/sdk/test/runner.js", line 46, in runTests/<
onDone: onDone
File "resource://extensions.modules.anonid0-annotator-at-jetpack.commonjs.path/sdk/test/harness.js", line 588, in runTests
startLeaks = getPotentialLeaks();
File "resource://extensions.modules.anonid0-annotator-at-jetpack.commonjs.path/sdk/test/harness.js", line 383, in getPotentialLeaks
mr.collectReports(logReporter, null);
0 of 1 tests passed.
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
Total time: 2.666000 seconds
Program terminated unsuccessfully.
Testing library-detector...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmpok6vjq.mozrunner'.
Running tests on Firefox 25.0/Gecko 25.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86-msvc.
Error: TypeError: mr.collectReports is not a function
Traceback (most recent call last):
File "resource://extensions.modules.jid1-r4rsvnkbannvgq-at-jetpack.commonjs.path/sdk/timers.js", line 40, in notify
callback.apply(null, args);
File "resource://extensions.modules.jid1-r4rsvnkbannvgq-at-jetpack.commonjs.path/sdk/test/runner.js", line 46, in runTests/<
onDone: onDone
File "resource://extensions.modules.jid1-r4rsvnkbannvgq-at-jetpack.commonjs.path/sdk/test/harness.js", line 588, in runTests
startLeaks = getPotentialLeaks();
File "resource://extensions.modules.jid1-r4rsvnkbannvgq-at-jetpack.commonjs.path/sdk/test/harness.js", line 383, in getPotentialLeaks
mr.collectReports(logReporter, null);
0 of 1 tests passed.
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
Total time: 2.571000 seconds
Program terminated unsuccessfully.
Testing reading-data...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmp8oghkx.mozrunner'.
Running tests on Firefox 25.0/Gecko 25.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86-msvc.
Error: TypeError: mr.collectReports is not a function
Traceback (most recent call last):
File "resource://extensions.modules.reading-data-example-at-jetpack-dot-mozillalabs-dot-com.commonjs.path/sdk/timers.js", line 40, in notify
callback.apply(null, args);
File "resource://extensions.modules.reading-data-example-at-jetpack-dot-mozillalabs-dot-com.commonjs.path/sdk/test/runner.js", line 46, in runTests/<
onDone: onDone
File "resource://extensions.modules.reading-data-example-at-jetpack-dot-mozillalabs-dot-com.commonjs.path/sdk/test/harness.js", line 588, in runTests
startLeaks = getPotentialLeaks();
File "resource://extensions.modules.reading-data-example-at-jetpack-dot-mozillalabs-dot-com.commonjs.path/sdk/test/harness.js", line 383, in getPotentialLeaks
mr.collectReports(logReporter, null);
0 of 1 tests passed.
Total time: 2.652000 seconds
Program terminated unsuccessfully.
Testing reddit-panel...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmp22os34.mozrunner'.
Running tests on Firefox 25.0/Gecko 25.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86-msvc.
Error: TypeError: mr.collectReports is not a function
Traceback (most recent call last):
File "resource://extensions.modules.anonid0-reddit-panel-at-jetpack.commonjs.path/sdk/timers.js", line 40, in notify
callback.apply(null, args);
File "resource://extensions.modules.anonid0-reddit-panel-at-jetpack.commonjs.path/sdk/test/runner.js", line 46, in runTests/<
onDone: onDone
File "resource://extensions.modules.anonid0-reddit-panel-at-jetpack.commonjs.path/sdk/test/harness.js", line 588, in runTests
startLeaks = getPotentialLeaks();
File "resource://extensions.modules.anonid0-reddit-panel-at-jetpack.commonjs.path/sdk/test/harness.js", line 383, in getPotentialLeaks
mr.collectReports(logReporter, null);
0 of 1 tests passed.
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
Total time: 2.656000 seconds
Program terminated unsuccessfully.
Some examples tests were unsuccessful.
Testing all unit-test addons...
Testing addon-page...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmp8r3n4v.mozrunner'.
console.error: addon-page:
Message: SyntaxError: missing ( before formal parameters
Stack:
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/deprecated/list.js:119
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/windows/firefox.js:8
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/windows.js:18
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/tabs/tabs-firefox.js:7
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/tabs/tabs.js:18
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/tabs.js:10
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
@resource://test-addon-page-at-jetpack/addon-page/lib/main.js:19
CuddlefishLoader/options<.load@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/loader/cuddlefish.js:129
run@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/addon/runner.js:146
startup/<@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/addon/runner.js:113
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:153
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:153
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:118
then@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:43
resolve@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/core/promise.js:185
readAsync/<@resource://extensions.modules.test-addon-page-at-jetpack.commonjs.path/sdk/net/url.js:49
@resource://gre/modules/NetUtil.jsm:137
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
Total time: 38.135000 seconds
Program terminated successfully.
Testing chrome...
Using binary at 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'.
Using profile at 'c:\users\aaron~1.eva\appdata\local\temp\tmppcscos.mozrunner'.
Running tests on Firefox 25.0/Gecko 25.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86-msvc.
Error: TypeError: mr.collectReports is not a function
Traceback (most recent call last):
File "resource://extensions.modules.test-chrome-at-jetpack.commonjs.path/sdk/timers.js", line 40, in notify
callback.apply(null, args);
File "resource://extensions.modules.test-chrome-at-jetpack.commonjs.path/sdk/test/runner.js", line 46, in runTests/<
onDone: onDone
File "resource://extensions.modules.test-chrome-at-jetpack.commonjs.path/sdk/test/harness.js", line 588, in runTests
startLeaks = getPotentialLeaks();
File "resource://extensions.modules.test-chrome-at-jetpack.commonjs.path/sdk/test/harness.js", line 383, in getPotentialLeaks
mr.collectReports(logReporter, null);
0 of 1 tests passed.
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined
Total time: 2.342000 seconds
Program terminated successfully.