Bug 856935 - Suppress downloads complete indicator glow when downloads view is open. r=mconley

This commit is contained in:
Girish Sharma 2013-05-04 00:02:11 +05:30
parent 859a9538b1
commit 51523db4b6

View File

@ -791,6 +791,10 @@ function DownloadsPlacesView(aRichListBox, aActive = true) {
let downloadsData = DownloadsCommon.getData(window.opener || window);
downloadsData.addView(this);
// Get the Download button out of the attention state since we're about to
// view all downloads.
DownloadsCommon.getIndicatorData(window).attention = false;
// Make sure to unregister the view if the window is closed.
window.addEventListener("unload", function() {
window.controllers.removeController(this);