修复“gBrowser.addProgressListener被第二个参数调用,不支持”警告(Fixing “gBrowser.addProgressListener was called with

编程入门 行业动态 更新时间:2024-10-28 15:23:45
修复“gBrowser.addProgressListener被第二个参数调用,不支持”警告(Fixing “gBrowser.addProgressListener was called with a second argument, which is not supported” warning)

我将我的插件提交给了firefox amo目录,并且它已被审阅并通过,但审阅者向我发送了以下消息:

2)错误控制台中出现以下错误。 这很容易解决。

错误:gBrowser.addProgressListener被第二个参数调用,不支持。 查看bug 608628.源文件:chrome://browser/content/tabbrowser.xml行:1840

事情是我没有触及chrome://browser/content/tabbrowser.xml ,甚至不知道在哪里可以找到它...所以我该如何解决这个问题?

谢谢!

I submitted my addon to the firefox amo directory and it got reviewed and passed, but the reviewer sent me this message:

2) The following error appears in the Error Console. It's fairly easy to fix.

Error: gBrowser.addProgressListener was called with a second argument, which is not supported. See bug 608628. Source File: chrome://browser/content/tabbrowser.xml Line: 1840

The thing is I have nver touched chrome://browser/content/tabbrowser.xml and dont even know where to find it... so how do I fix this problem?

Thanks!

最满意答案

听起来你正在代码中的多个参数中调用addProgressListener() 。 这是一个单一的参数功能 - 你可以在这里找到文档:

https://developer.mozilla.org/en/XUL/tabbrowser#m-addProgressListener

位置chrome://browser/content/tabbrowser.xml是函数定义的位置,而第1840行是文件中“不要调用具有多个参数的函数”错误的位置。 你可以在(我认为) browser/base/content/tabbrowser.xml的FF源代码中找到该文件,但在这种情况下你可能不需要检查它。

Sounds like you are calling addProgressListener() somewhere in your code with multiple arguments. It is a single argument function - you can find the documentation here:

https://developer.mozilla.org/en/XUL/tabbrowser#m-addProgressListener

The location chrome://browser/content/tabbrowser.xml is where the function is defined, and line 1840 is the location in the file where the "don't call this function with more than one argument" error is thrown. You can find the file in a check out of the FF source at (I think) browser/base/content/tabbrowser.xml, but you probably don't need to examine it in this case.

更多推荐

content,tabbrowser,chrome,xml,电脑培训,计算机培训,IT培训"/> <meta name="

本文发布于:2023-07-29 18:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318826.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第二个   不支持   参数   addProgressListener   gBrowser

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!