Add front-end workaround for: Bug 640158 - Clicking star button changes toolbar's icon size from "small" to "large". r=mak
authorDão Gottwald <dao@mozilla.com>
Wed, 23 Mar 2011 12:38:46 +0100
changeset 63666 729114cbcda13bdf57df3488140b5137293132fc
parent 63665 dced24264c95d48cfd0b9e18841bb1b7585092fc
child 63667 627840006eb97853e0a63669e26eb6fe9a4009a1
push idunknown
push userunknown
push dateunknown
reviewersmak
bugs640158
milestone2.0b13pre
Add front-end workaround for: Bug 640158 - Clicking star button changes toolbar's icon size from "small" to "large". r=mak
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -166,16 +166,19 @@ var StarUI = {
     }
 
     var loadObserver = {
       _self: this,
       _itemId: aItemId,
       _anchorElement: aAnchorElement,
       _position: aPosition,
       observe: function (aSubject, aTopic, aData) {
+        //XXX We just caused localstore.rdf to be re-applied (bug 640158)
+        retrieveToolbarIconsizesFromTheme();
+
         this._self._overlayLoading = false;
         this._self._overlayLoaded = true;
         this._self._doShowEditBookmarkPanel(this._itemId, this._anchorElement,
                                             this._position);
       }
     };
     this._overlayLoading = true;
     document.loadOverlay("chrome://browser/content/places/editBookmarkOverlay.xul",