mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00
Bug 1058650 - updateBrowserSpecificIndicator should not be called for closed tabs, r=Gijs.
This commit is contained in:
parent
209a4ad3a3
commit
41e86f3c1a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user