Bug 644645: don't NS_ASSERT when an extra parameter is passed to tabbrowser.addProgressListener, since popular extensions do that and it's annoying

This commit is contained in:
Gavin Sharp 2011-03-25 14:50:00 -04:00
Родитель 1fa82a8349
Коммит 10be45c537
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1822,9 +1822,12 @@
<parameter name="aListener"/>
<body>
<![CDATA[
NS_ASSERT(arguments.length == 1,
"gBrowser.addProgressListener was called with a second argument, " +
"which is not supported. See bug 608628.");
if (arguments.length != 1) {
Components.utils.reportError("gBrowser.addProgressListener was " +
"called with a second argument, " +
"which is not supported. See bug " +
"608628.");
}
if (!this.mAddProgressListenerWasCalled) {
this.mAddProgressListenerWasCalled = true;