Back out d9c1eb0c7b8d (bug 804068) for forgetting there was a browser-chrome test to adjust
authorPhil Ringnalda <philringnalda@gmail.com>
Tue, 23 Oct 2012 21:23:23 -0700
changeset 111349 a3a24807434c3e03c216e3465d0a216940bbd5bf
parent 111348 32653fd17e58379ba78392dd82001ff3041be36b
child 111350 8fa504f1802e0be6ed9d7dff6814720e77a9b893
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs804068
milestone19.0a1
backs outd9c1eb0c7b8d75dd403e4eba950b013737384150
Back out d9c1eb0c7b8d (bug 804068) for forgetting there was a browser-chrome test to adjust
browser/base/content/browser-social.js
browser/themes/gnomestripe/browser.css
browser/themes/pinstripe/browser.css
browser/themes/winstripe/browser.css
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -588,17 +588,17 @@ let SocialShareButton = {
       shareButton.setAttribute("shared", "true");
       shareButton.setAttribute("tooltiptext", this.promptMessages['unshareTooltip']);
       imageURL = this.promptImages["unshare"]
     } else {
       shareButton.removeAttribute("shared");
       shareButton.setAttribute("tooltiptext", this.promptMessages['shareTooltip']);
       imageURL = this.promptImages["share"]
     }
-    shareButton.src = imageURL;
+    shareButton.style.backgroundImage = 'url("' + encodeURI(imageURL) + '")';
   }
 };
 
 var SocialMenu = {
   populate: function SocialMenu_populate() {
     // This menu is only accessible through keyboard navigation.
     let submenu = document.getElementById("menu_socialAmbientMenuPopup");
     let ambientMenuItems = submenu.getElementsByClassName("ambient-menuitem");
--- a/browser/themes/gnomestripe/browser.css
+++ b/browser/themes/gnomestripe/browser.css
@@ -1373,16 +1373,21 @@ richlistitem[type~="action"][actiontype=
 
 /* Popup blocker button */
 #page-report-button {
   list-style-image: url("chrome://browser/skin/Info.png");
 }
 
 /* social recommending panel */
 
+#share-button {
+  width: 16px;
+  height: 16px;
+}
+
 #socialUserPortrait {
   width: 48px;
   height: 48px;
 }
 
 #socialUserDisplayName,
 #socialUserPortrait {
   cursor: pointer;
--- a/browser/themes/pinstripe/browser.css
+++ b/browser/themes/pinstripe/browser.css
@@ -1631,16 +1631,21 @@ window[tabsontop="false"] richlistitem[t
   #page-report-button:hover:active,
   #page-report-button[open="true"] {
     -moz-image-region: rect(0, 64px, 32px, 32px);
   }
 }
 
 /* social recommending panel */
 
+#share-button {
+  width: 16px;
+  height: 16px;
+}
+
 #socialUserPortrait {
   width: 48px;
   height: 48px;
 }
 
 #socialUserDisplayName,
 #socialUserPortrait {
   cursor: pointer;
--- a/browser/themes/winstripe/browser.css
+++ b/browser/themes/winstripe/browser.css
@@ -1635,16 +1635,21 @@ richlistitem[type~="action"][actiontype=
 
 #page-report-button:hover:active,
 #page-report-button[open="true"] {
   -moz-image-region: rect(0, 48px, 16px, 32px);
 }
 
 /* social recommending panel */
 
+#share-button {
+  width: 16px;
+  height: 16px;
+}
+
 #socialUserPortrait {
   width: 48px;
   height: 48px;
 }
 
 #socialUserDisplayName,
 #socialUserPortrait {
   cursor: pointer;