我提交了我的插件到firefox AMO目錄,它得到了審議通過,不過評測人員給我發了這樣一條消息:修復「gBrowser.addProgressListener被稱爲與第二個參數,它是不支持」警告
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
,甚至不知道在哪裏可以找到它...所以我該如何解決這個問題?
謝謝!
找到行: \t \t \t'gBrowser.addProgressListener(self.quickfilter_urlBarListener,Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT);'我怎麼改嗎? – Ryan
只需刪除'Components.inte rfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT'參數。你並不需要找到線在此情況下,通知掩碼參數:) –