author | Mike Conley <mconley@mozilla.com> |
Wed, 28 Nov 2012 11:10:57 -0500 | |
changeset 114370 | 8a84d0ad94c1a7c08a8d4b140858f214f441ef19 |
parent 114369 | 28dc63439824e9daf30e5b0e5aaee42591898e92 |
child 114371 | 7c45205a61a0d6681f5302d4670bc74d9bed6636 |
push id | 23917 |
push user | emorley@mozilla.com |
push date | Thu, 29 Nov 2012 14:20:29 +0000 |
treeherder | mozilla-central@c72d38e7a212 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | mak |
bugs | 815273 |
milestone | 20.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
browser/components/downloads/content/downloads.css | file | annotate | diff | comparison | revisions | |
browser/components/downloads/content/downloads.js | file | annotate | diff | comparison | revisions |
--- a/browser/components/downloads/content/downloads.css +++ b/browser/components/downloads/content/downloads.css @@ -1,12 +1,18 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * 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"] { -moz-binding: url('chrome://browser/content/downloads/download.xml#download'); } richlistitem[type="download"]:not([selected]) button { /* Only focus buttons in the selected item. */
--- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -351,17 +351,17 @@ const DownloadsPanel = { let element = document.commandDispatcher.focusedElement; while (element && element != this.panel) { element = element.parentNode; } if (!element) { if (DownloadsView.richListBox.itemCount > 0) { DownloadsView.richListBox.focus(); } else { - DownloadsView.downloadsHistory.focus(); + this.panel.focus(); } } }, /** * Opens the downloads panel when data is ready to be displayed. */ _openPopupIfDataReady: function DP_openPopupIfDataReady()