зеркало из https://github.com/mozilla/pjs.git
Bug 608628 - Remove obsolete aMask parameter from tabbrowser's addProgressListener method. r=gavin
This commit is contained in:
Родитель
48df0c5d2a
Коммит
04c00a9a21
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче