зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1fa82a8349
Коммит
10be45c537
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче