Bug 1071822 - update the learn more link in the tiles intro popup [r=adw a=sylvestre]
authorEd Lee <edilee@mozilla.com>
Tue, 23 Sep 2014 14:01:49 -0700
changeset 216865 0217719f20c5
parent 216864 b58a231c328c
child 216866 d34488e06177
push id3946
push useredilee@gmail.com
push date2014-09-28 14:45 +0000
treeherdermozilla-beta@2a8947c986ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, sylvestre
bugs1071822
milestone33.0
Bug 1071822 - update the learn more link in the tiles intro popup [r=adw a=sylvestre] Add a separate const for separate links.
browser/base/content/newtab/intro.js
browser/base/content/newtab/newTab.js
--- a/browser/base/content/newtab/intro.js
+++ b/browser/base/content/newtab/intro.js
@@ -44,17 +44,17 @@ let gIntro = {
 
   _setUpPanel: function() {
     // Build the panel if necessary
     if (this._nodes.panel.childNodes.length == 0) {
       let h1 = document.createElementNS(HTML_NAMESPACE, "h1");
       this._nodes.panel.appendChild(h1);
       h1.textContent = newTabString("intro.header");
 
-      ['<a href="' + TILES_EXPLAIN_LINK + '">' + newTabString("learn.link") + "</a>",
+      ['<a href="' + TILES_INTRO_LINK + '">' + newTabString("learn.link") + "</a>",
        '<a href="' + TILES_PRIVACY_LINK + '">' + newTabString("privacy.link") + "</a>",
        '<input type="button" class="newtab-customize"/>',
       ].forEach((arg, index) => {
         let paragraph = document.createElementNS(HTML_NAMESPACE, "p");
         this._nodes.panel.appendChild(paragraph);
         paragraph.innerHTML = newTabString("intro.paragraph" + (index + 1), [arg]);
       });
     }
--- a/browser/base/content/newtab/newTab.js
+++ b/browser/base/content/newtab/newTab.js
@@ -274,16 +274,17 @@ function newTabString(name, args = []) {
 function inPrivateBrowsingMode() {
   return PrivateBrowsingUtils.isWindowPrivate(window);
 }
 
 const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
 const XUL_NAMESPACE = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
 
 const TILES_EXPLAIN_LINK = "https://support.mozilla.org/kb/how-do-tiles-work-firefox";
+const TILES_INTRO_LINK = "https://www.mozilla.org/firefox/tiles/";
 const TILES_PRIVACY_LINK = "https://www.mozilla.org/privacy/";
 
 #include transformations.js
 #include page.js
 #include grid.js
 #include cells.js
 #include sites.js
 #include drag.js