Bug 749624 - Check to make sure BrowserApp.selectedTab isn't null. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-28 15:35:11 -04:00
parent 02168e45af
commit d373653306

View File

@ -4748,8 +4748,9 @@ var ActivityObserver = {
break;
}
if (BrowserApp.selectedTab.getActive() != isForeground) {
BrowserApp.selectedTab.setActive(isForeground);
let tab = BrowserApp.selectedTab;
if (tab && tab.getActive() != isForeground) {
tab.setActive(isForeground);
}
}
};