From 9c098562539f39c586eec5dafec11eabd78d795e Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Wed, 28 Nov 2012 11:10:57 -0500 Subject: [PATCH] Bug 815273 - Don't force focus the Downloads Panel "Show all downloads" button when opening the panel. r=mak. --- browser/components/downloads/content/downloads.css | 6 ++++++ browser/components/downloads/content/downloads.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/browser/components/downloads/content/downloads.css b/browser/components/downloads/content/downloads.css index c30db339a645..8f53421902cf 100644 --- a/browser/components/downloads/content/downloads.css +++ b/browser/components/downloads/content/downloads.css @@ -2,6 +2,12 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +/*** Download panel ***/ + +#downloadsPanel { + -moz-user-focus: normal; +} + /*** Download items ***/ richlistitem[type="download"] { diff --git a/browser/components/downloads/content/downloads.js b/browser/components/downloads/content/downloads.js index e03867e35279..f6c680fc0de0 100644 --- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -356,7 +356,7 @@ const DownloadsPanel = { if (DownloadsView.richListBox.itemCount > 0) { DownloadsView.richListBox.focus(); } else { - DownloadsView.downloadsHistory.focus(); + this.panel.focus(); } } },