- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试测试我正在开发的附加组件,该附加组件在我升级到 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.
最佳答案
Javascript 严格警告,包括您提供的 tabbrowser 警告,可以安全地忽略,来自 Firefox 代码本身,只是因为 how the SDK sets up javascript.options.strict
而出现。 .
我测试了some stuff from github使用 SDK 1.14,虽然确实有很多严格的警告(以及一些可以忽略的不相关的 Firefox 错误),但总体上似乎可以正常工作。
如果您遇到任何无法正常工作的具体问题,请修改您的问题。
testall
错误是预期的:您正在针对 Firefox Release 运行 SDK master
,它尚不支持 function*
也不支持它有 bug 910517然而(collectReports
东西)。同样,这没什么好担心的,因为将使用 Firefox 附带的 SDK 库版本,除非您明确告诉 cfx
否则(无论如何都不支持)。
关于javascript - 系统JS : WARNING error running cfx run once updated to Firefox v25,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19746609/
我已经通过 AVD 管理器启动了我的模拟器,一旦它运行,我点击了 run app。我已经等了几分钟,我的正在运行的设备出现在 选择一个正在运行的设备 中,但窗口始终保持空白。 最佳答案 您正在运行的项
我想在安装新数据库之前删除旧数据库,以便为用户更新它。 我有以下情况: 在我的 Components 部分中,我为用户提供了一个选项: [Components] Name: "updateDataba
如果我将一个 Python 模块实现为一个目录(即包),它同时具有顶级函数 run 和子模块 run,我可以指望 from example import run 总是导入函数?根据我的测试,至少在 L
我在 Eclipse Juno 上使用 Tomcat 7。我使用工作区元数据作为服务器位置(请参阅下面的我的 tomcat 配置)。 我也收到了 服务器项目在 eclipse [请看下图] 中使用单独
我正在做一些测试以了解 java 中的不同线程状态,并且遇到了一些查询。 通常,当一个线程被实例化时,它被称为处于 "NEW" 状态,然后当调用它的 start() 方法时,操作系统调度程序获得控制权
当我使用命令 npm run build -- --prod 时,我收到以下错误消息: 属性“PropertyName1”是私有(private)属性,只能在“AppComponent”类中访问 “A
我正在尝试将默认的“运行”键盘快捷键更改为 ⌘R。 - 因为我不想每次都伸手去拿触控板,而且我的手指不够长,无法一次执行⌥⇧F10。 “运行”和“运行...”有什么区别? 最佳答案 ... 用于菜单中
我现在不知道如何编写一个合适的方法来测试这种行为。请不要投反对票.. 我现在有一个 java 类负责处理数据并将数据添加到多个数据库。每个数据库都保存相同的数据,但处理方式不同(例如,以不同的插值率进
我知道不应该调用 run 方法来启动新线程执行,但我指的是 this article他们在另一个 run 方法中调用了 runnable.run(); ,这似乎暗示它启动了一个新线程或者根本没有cre
当我尝试在Windows 10/11下使用Eclipse 2023-06调试任何应用程序(甚至是hello.c)时,我总是收到以下错误:。该错误清楚地指示-(错误2)-路径是错误的。。我试图在互联网上
在运行vue文件时,需要进行npm操作,但我们发现,有时候用的是npm run serve,而有的时候用的是npm run dev,二者有什么区别 在我们运行一些 vue 项目的时候,输入npm ru
我想在 cloud run 上运行一个长时间运行的作业。该任务可能执行超过 30 分钟,并且主要发送 API 请求。cloud run 在大约 20 分钟后停止执行,从指标来看,它似乎没有识别出我的任
我们无法让 SSE 从 Google Cloud Run 上的容器发送。我已经尝试使用一个简单的 SSE 示例( https://github.com/kljensen/node-sse-exampl
直到最近,我一直在执行这个美丽来构建 + 运行一个带有堆栈的项目: stack build && .stack-work/install/x86_64-linux/lts-4.1/7.10.3/bin
我们有一个小脚本,可以抓取网页(约 17 个条目),并将它们写入 Firestore 集合。为此,我们在 Google Cloud Run 上部署了一项服务。 这段代码的执行需要大约 5 秒 when
我是Docker的新手,我知道一种运行交互式容器的方法如下: $ docker run -it image-name bash 要么 $ docker run -it image-name /bin/
Dockerfile 中的多个 RUN 条目之间有什么区别,例如: FROM php:5.6-apache RUN docker-php-ext-install mysqli RUN apt upda
对于来自文档的云运行内存使用情况 ( https://cloud.google.com/run/docs/configuring/memory-limits ) Cloud Run applicati
今天早上我更新了我的 Ubuntu 版本,现在我无法从 eclipse 运行我的应用程序。 问题是,当我单击“运行方式”时出现的列表是空的,我无法运行任何内容。 我该如何解决这个问题? 我能看到的唯一
我正在 intelliJ 上使用 livereload 测试 spring-boot-devtools。我有一个简单的 SpringBootApplication,可以正常工作。 当我从 maven
我是一名优秀的程序员,十分优秀!