Bug 688693 - Tweak the portrait tabs menu. r=mfinkle
authorWes Johnston <wjohnston@mozilla.com>
Fri, 23 Sep 2011 16:02:27 -0700
changeset 77480 c1baac3439cd7ea88e5c60bdb47d989347edea5c
parent 77479 96214726a7696258663b08516c1d1454ce048ad9
child 77481 9de2292c7a8d33cabf4505f164187df926e3b757
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersmfinkle
bugs688693
milestone9.0a1
Bug 688693 - Tweak the portrait tabs menu. r=mfinkle
mobile/chrome/content/TabsPopup.js
mobile/themes/core/honeycomb/browser.css
--- a/mobile/chrome/content/TabsPopup.js
+++ b/mobile/chrome/content/TabsPopup.js
@@ -92,16 +92,23 @@ var TabsPopup = {
         let entry = browser.__SS_data.entries[0];
         caption = entry.title;
 
         let pageURI = Services.io.newURI(entry.url, null, null);
         try {
           let iconURI = gFaviconService.getFaviconImageForPage(pageURI);
           icon = iconURI.spec;
         } catch(ex) { }
+      } else {
+        if (caption == "about:blank")
+          caption = browser.currentURI.spec;
+        if (!icon) {
+          let iconURI = gFaviconService.getFaviconImageForPage(browser.currentURI);
+          icon = iconURI.spec;
+        }
       }
       item.setAttribute("img", icon);
       item.setAttribute("label", caption);
 
       this.list.appendChild(item);
       item.tab = aTab;
     }, this)
 
--- a/mobile/themes/core/honeycomb/browser.css
+++ b/mobile/themes/core/honeycomb/browser.css
@@ -1952,18 +1952,18 @@ setting {
   background-color: @color_background_highlight@;  
 }
 
 .documenttab-popup-closebutton:hover:active {
   background-image: none !important;
 }
 
 .documenttab-popup-checkmark {
-  min-width: -moz-calc(26px + 2 * @padding_normal@); /* size of the checkmark image  plus the padding */
-  padding: 0px @padding_normal@;
+  min-width: -moz-calc(26px + @padding_normal@) !important; /* size of the checkmark image  plus the padding */
+  -moz-padding-end: @padding_normal@;
 }
 
 .tab-popup-item.selected .documenttab-popup-checkmark {
   list-style-image: url("chrome://browser/skin/images/checkmark-hdpi.png");
 }
 
 .documenttab-popup-label {
   -moz-box-flex: 1;