gpt4 book ai didi

javascript - 修复 "gBrowser.addProgressListener was called with a second argument, which is not supported"警告

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:09:47 27 4
gpt4 key购买 nike

我将我的插件提交到 firefox amo 目录,它得到了审查并通过了,但是审查者给我发了这条消息:

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

问题是我从未接触过 chrome://browser/content/tabbrowser.xml 甚至不知道在哪里可以找到它...所以我该如何解决这个问题?

谢谢!

最佳答案

听起来您正在使用多个参数在代码中的某处调用 addProgressListener()。它是一个单参数函数 - 您可以在此处找到文档:

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

位置 chrome://browser/content/tabbrowser.xml 是函数定义的地方,第 1840 行是文件中“不要使用更多调用此函数”的位置多于一个参数”错误被抛出。您可以在(我认为)browser/base/content/tabbrowser.xml 的 FF 源文件中找到该文件,但在这种情况下您可能不需要检查它。

关于javascript - 修复 "gBrowser.addProgressListener was called with a second argument, which is not supported"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6500786/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com