Bug 717110 - [New Tab Page] Tooltips should be added to page thumbnails; r=dao
☠☠ backed out by f47e281a0509 ☠ ☠
authorTim Taubert <tim.taubert@gmx.de>
Wed, 25 Jan 2012 23:45:16 +0100
changeset 85359 7f44427086f7a0819555fbb998323a5ed9cda904
parent 85358 38eda0c8b0fd88acca3a858d53732e19e23695c4
child 85360 74b125f29e23d0739f5e88ef3d454ad74847f73f
push id469
push usertim.taubert@gmx.de
push dateWed, 25 Jan 2012 22:50:42 +0000
treeherderfx-team@74b125f29e23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs717110
milestone12.0a1
Bug 717110 - [New Tab Page] Tooltips should be added to page thumbnails; r=dao
browser/base/content/newtab/sites.js
--- a/browser/base/content/newtab/sites.js
+++ b/browser/base/content/newtab/sites.js
@@ -115,18 +115,20 @@ Site.prototype = {
       buttonPin.setAttribute("title", newTabString("pin"));
     }
   },
 
   /**
    * Renders the site's data (fills the HTML fragment).
    */
   _render: function Site_render() {
+    let title = this.title || this.url;
+    this.node.setAttribute("title", title);
     this.node.setAttribute("href", this.url);
-    this._querySelector(".site-title").textContent = this.title || this.url;
+    this._querySelector(".site-title").textContent = title;
 
     if (this.isPinned())
       this._updateAttributes(true);
 
     this._renderThumbnail();
   },
 
   /**