From b8f61af7a97ba05dc0cdd11ac8e3d44624d577e3 Mon Sep 17 00:00:00 2001 From: Mike de Boer Date: Thu, 1 Aug 2013 12:47:11 +0200 Subject: [PATCH] Bug 873517: Update CSS selectors for Downloads indicator on Linux to show icon. r=mak --- .../components/downloads/content/indicator.js | 3 +++ .../downloads/content/indicatorOverlay.xul | 1 - browser/themes/linux/downloads/indicator.css | 20 +++---------------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/browser/components/downloads/content/indicator.js b/browser/components/downloads/content/indicator.js index b9387eee625d..b1767f00dac4 100644 --- a/browser/components/downloads/content/indicator.js +++ b/browser/components/downloads/content/indicator.js @@ -168,6 +168,9 @@ const DownloadsButton = { placeholder.parentNode.insertBefore(indicator, placeholder); placeholder.collapsed = true; indicator.collapsed = false; + const kAreaType = "customizableui-areatype"; + if (!indicator.getAttribute(kAreaType)) + indicator.setAttribute(kAreaType, placeholder.getAttribute(kAreaType)); indicator.open = this._anchorRequested; diff --git a/browser/components/downloads/content/indicatorOverlay.xul b/browser/components/downloads/content/indicatorOverlay.xul index 735c4257b00f..dafe390669c9 100644 --- a/browser/components/downloads/content/indicatorOverlay.xul +++ b/browser/components/downloads/content/indicatorOverlay.xul @@ -34,7 +34,6 @@ ondrop="DownloadsIndicatorView.onDrop(event);" ondragover="DownloadsIndicatorView.onDragOver(event);" ondragenter="DownloadsIndicatorView.onDragOver(event);" - ondragleave="DownloadsIndicatorView.onDragLeave(event);" skipintoolbarset="true">