mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 749624 - Check to make sure BrowserApp.selectedTab isn't null. r=mfinkle
This commit is contained in:
parent
02168e45af
commit
d373653306
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user