Bug 608628 - Remove obsolete aMask parameter from tabbrowser's addProgressListener method. r=gavin

This commit is contained in:
Dão Gottwald 2011-03-23 12:35:21 +01:00
parent c7ac959be9
commit 329c813aa2
2 changed files with 5 additions and 2 deletions

View File

@ -1439,7 +1439,7 @@ function prepareForStartup() {
}
// hook up UI through progress listener
gBrowser.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
gBrowser.addProgressListener(window.XULBrowserWindow);
gBrowser.addTabsProgressListener(window.TabsProgressListener);
// setup our common DOMLinkAdded listener

View File

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