Bug 123340 tabbed browser calls onLinkIconAvailable not defined on nsIProgressMeter
r=bz sr=neil git-svn-id: svn://10.0.0.236/trunk@166416 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -572,7 +572,7 @@
|
||||
if (listener.mIcon) {
|
||||
if (this.isFavIconKnownMissing(listener.mIcon))
|
||||
listener.mIcon = null;
|
||||
else
|
||||
else if ('onLinkIconAvailable' in p)
|
||||
p.onLinkIconAvailable(newBrowser, listener.mIcon);
|
||||
}
|
||||
}
|
||||
@@ -743,7 +743,7 @@
|
||||
var targetBrowser = tabBrowser.getBrowserAtIndex(browserIndex);
|
||||
for (i = 0; i < tabBrowser.mProgressListeners.length; i++) {
|
||||
var p = tabBrowser.mProgressListeners[i];
|
||||
if (p)
|
||||
if (p && 'onLinkIconAvailable' in p)
|
||||
p.onLinkIconAvailable(targetBrowser, href);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@
|
||||
if (securityUI)
|
||||
p.onSecurityChange(webProgress, null, securityUI.state);
|
||||
var listener = this.mTabListeners[this.mPanelContainer.selectedIndex];
|
||||
if (listener.mIcon)
|
||||
if (listener.mIcon && 'onLinkIconAvailable' in p)
|
||||
p.onLinkIconAvailable(listener.mIcon);
|
||||
}
|
||||
}
|
||||
@@ -696,7 +696,7 @@
|
||||
if (notifyListeners && this.mProgressListeners) {
|
||||
for (i = 0; i < this.mProgressListeners.length; i++) {
|
||||
var p = this.mProgressListeners[i];
|
||||
if (p)
|
||||
if (p && 'onLinkIconAvailable' in p)
|
||||
p.onLinkIconAvailable(href);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user