Bug 872317 - Make the download indicator toolbar button work with the changes in bug 653881. r=mak77
authorBlake Kaplan <mrbkap@gmail.com>
Tue, 14 May 2013 16:41:24 -0700
changeset 136874 cdea148283a3a9c464ca2fb7b78799422d01746c
parent 136873 8f33bb32e924837a46cbabd6a3945fa290361d75
child 136875 989747f479ee1bb8d24c51f24308bf1070be3ff7
push id24898
push userphilringnalda@gmail.com
push dateSat, 29 Jun 2013 13:54:45 +0000
treeherdermozilla-central@cbb24a4a96af [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak77
bugs872317, 653881
milestone25.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
Bug 872317 - Make the download indicator toolbar button work with the changes in bug 653881. r=mak77
browser/base/content/browser.css
browser/components/downloads/content/download.xml
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -657,16 +657,22 @@ chatbox[minimized="true"] {
 }
 
 chatbar {
   -moz-binding: url("chrome://browser/content/socialchat.xml#chatbar");
   height: 0;
   max-height: 0;
 }
 
+/** See bug 872317 for why the following rule is necessary. */
+
+#downloads-indicator {
+  -moz-binding: url("chrome://browser/content/downloads/download.xml#download-toolbarbutton");
+}
+
 /* full screen chat window support */
 chatbar:-moz-full-screen-ancestor,
 chatbox:-moz-full-screen-ancestor  {
   border: none;
   position: fixed !important;
   top: 0 !important;
   left: 0 !important;
   right: 0 !important;
--- a/browser/components/downloads/content/download.xml
+++ b/browser/components/downloads/content/download.xml
@@ -101,9 +101,16 @@
                   tooltiptext="&cmd.showMac.label;"
 #else
                   tooltiptext="&cmd.show.label;"
 #endif
                   oncommand="goDoCommand('downloadsCmd_show')"/>
 
     </content>
   </binding>
+
+  <binding id="download-toolbarbutton"
+           extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
+    <content>
+      <children />
+    </content>
+  </binding>
 </bindings>