Bug 1058650 - updateBrowserSpecificIndicator should not be called for closed tabs, r=Gijs.

This commit is contained in:
Florian Quèze 2014-08-27 16:52:21 +02:00
parent 209a4ad3a3
commit 41e86f3c1a

View File

@ -845,5 +845,8 @@ function removeBrowserNotification(aBrowser, aNotificationId) {
}
function removeBrowserSpecificIndicator(aSubject, aTopic, aData) {
updateBrowserSpecificIndicator(getBrowserForWindowId(aData));
let browser = getBrowserForWindowId(aData);
// If the tab has already been closed, ignore the notification.
if (browser.contentWindow)
updateBrowserSpecificIndicator(browser);
}