Bug 941568 - [Australis] History subview shows no URLs/addresses in the tooltips. r=Unfocused
authorJared Wein <jwein@mozilla.com>
Tue, 17 Dec 2013 21:11:57 -0500
changeset 160999 20c8bcc72b5f3a8c13cced5ab11384392d7ed47a
parent 160998 26e97bf735040a5812eecce546eac110a4902faf
child 161000 fc79fa2fd2e368403ec3bd2a299063324acdfb92
push id3372
push usercbook@mozilla.com
push dateWed, 18 Dec 2013 12:06:28 +0000
treeherderb2g-inbound@0758d09c0962 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs941568
milestone29.0a1
Bug 941568 - [Australis] History subview shows no URLs/addresses in the tooltips. r=Unfocused
browser/components/customizableui/content/panelUI.inc.xul
browser/components/customizableui/src/CustomizableWidgets.jsm
--- a/browser/components/customizableui/content/panelUI.inc.xul
+++ b/browser/components/customizableui/content/panelUI.inc.xul
@@ -38,21 +38,21 @@
       <label value="&appMenuHistory.label;"/>
       <toolbarbutton id="appMenuClearRecentHistory" tabindex="0"
                      label="&appMenuHistory.clearRecent.label;"
                      command="Tools:Sanitize"/>
       <toolbarbutton id="appMenuRestoreLastSession" tabindex="0"
                      label="&appMenuHistory.restoreSession.label;"
                      command="Browser:RestoreLastSession"/>
       <menuseparator id="PanelUI-recentlyClosedTabs-separator"/>
-      <vbox id="PanelUI-recentlyClosedTabs"/>
+      <vbox id="PanelUI-recentlyClosedTabs" tooltip="bhTooltip"/>
       <menuseparator id="PanelUI-recentlyClosedWindows-separator"/>
-      <vbox id="PanelUI-recentlyClosedWindows"/>
+      <vbox id="PanelUI-recentlyClosedWindows" tooltip="bhTooltip"/>
       <menuseparator id="PanelUI-historyItems-separator"/>
-      <vbox id="PanelUI-historyItems"/>
+      <vbox id="PanelUI-historyItems" tooltip="bhTooltip"/>
       <label value="&appMenuHistory.showAll.label;"
              id="PanelUI-historyMore"
              class="text-link"
              onclick="PlacesCommandHook.showPlacesOrganizer('History'); CustomizableUI.hidePanelForNode(this);"/>
     </panelview>
 
     <panelview id="PanelUI-bookmarks" flex="1">
       <toolbarbutton id="panelMenuBookmarkThisPage"
--- a/browser/components/customizableui/src/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/src/CustomizableWidgets.jsm
@@ -94,16 +94,17 @@ const CustomizableWidgets = [{
             try {
               let uri = row.getResultByIndex(1);
               let title = row.getResultByIndex(2);
               let icon = row.getResultByIndex(6);
 
               let item = doc.createElementNS(kNSXUL, "toolbarbutton");
               item.setAttribute("label", title || uri);
               item.setAttribute("tabindex", "0");
+              item.setAttribute("targetURI", uri);
               item.addEventListener("command", function (aEvent) {
                 onHistoryVisit(uri, aEvent, item);
               });
               item.addEventListener("click", function (aEvent) {
                 onHistoryVisit(uri, aEvent, item);
               });
               if (icon)
                 item.setAttribute("image", "moz-anno:favicon:" + icon);