Bug 846754 - Remove transient notification bars for background-tab location changes. r=mak

This commit is contained in:
Dão Gottwald 2013-03-06 10:06:04 +01:00
parent 070814effa
commit 175f3de714

View File

@ -4771,6 +4771,11 @@ var TabsProgressListener = {
if (!Object.getOwnPropertyDescriptor(window, "PopupNotifications").get)
PopupNotifications.locationChange(aBrowser);
// Only handle background browsers as long as the selected browser is
// handled in XULBrowserWindow.onLocationChange (bug 839516).
if (aBrowser != gBrowser.selectedBrowser)
gBrowser.getNotificationBox(aBrowser).removeTransientNotifications();
FullZoom.onLocationChange(aLocationURI, false, aBrowser);
}
},