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 85388 7f44427086f7a0819555fbb998323a5ed9cda904
parent 85387 38eda0c8b0fd88acca3a858d53732e19e23695c4
child 85389 74b125f29e23d0739f5e88ef3d454ad74847f73f
push id21920
push usertim.taubert@gmx.de
push dateThu, 26 Jan 2012 07:46:03 +0000
treeherdermozilla-central@402b394b6623 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs717110
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();
   },
 
   /**