Bug 736424 - Intermittent TEST-UNEXPECTED-FAIL | browser_tabview_bug600645.js | The app tab icon has the right tab reference; r=dietrich

This commit is contained in:
Tim Taubert 2012-03-19 15:48:57 +01:00
parent 696f1c3413
commit 475d34d572

View File

@ -1191,6 +1191,10 @@ GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), {
// dontAdjustTray - (boolean) if true, do not adjust the tray.
addAppTab: function GroupItem_addAppTab(xulTab, options) {
GroupItems.getAppTabFavIconUrl(xulTab, function(iconUrl) {
// The tab might have been removed or unpinned while waiting.
if (xulTab.closing || !xulTab.parentNode || !xulTab.pinned)
return;
let self = this;
let $appTab = iQ("<img>")
.addClass("appTabIcon")