Bug 961773 - Part 1: Update reading list panel id used to open reading list from reader mode. r=lucasr, a=sledru
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Wed, 12 Feb 2014 14:42:33 -0800
changeset 182857 b5b8db2fdbaec026eef8f3657cf01f62eefb6618
parent 182856 11f2f0d67954c4563ce7e9d8e8aba9e9f832b822
child 182858 a1dfc5d159a04f2bc770c6b570f1cb52c2cb902f
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr, sledru
bugs961773
milestone29.0a2
Bug 961773 - Part 1: Update reading list panel id used to open reading list from reader mode. r=lucasr, a=sledru
mobile/android/chrome/content/aboutReader.js
--- a/mobile/android/chrome/content/aboutReader.js
+++ b/mobile/android/chrome/content/aboutReader.js
@@ -2,16 +2,19 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 let Ci = Components.interfaces, Cc = Components.classes, Cu = Components.utils;
 
 Cu.import("resource://gre/modules/Services.jsm")
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
+// Panel ID defined in HomeConfig.java.
+const READING_LIST_PANEL_ID = "20f4549a-64ad-4c32-93e4-1dcef792733b";
+
 XPCOMUtils.defineLazyGetter(window, "gChromeWin", function ()
   window.QueryInterface(Ci.nsIInterfaceRequestor)
     .getInterface(Ci.nsIWebNavigation)
     .QueryInterface(Ci.nsIDocShellTreeItem)
     .rootTreeItem
     .QueryInterface(Ci.nsIInterfaceRequestor)
     .getInterface(Ci.nsIDOMWindow)
     .QueryInterface(Ci.nsIDOMChromeWindow));
@@ -361,17 +364,17 @@ AboutReader.prototype = {
       }.bind(this));
     }
   },
 
   _onList: function Reader_onList() {
     if (!this._article || this._readingListCount < 1)
       return;
 
-    gChromeWin.BrowserApp.loadURI("about:home?page=reading_list");
+    gChromeWin.BrowserApp.loadURI("about:home?page=" + READING_LIST_PANEL_ID);
   },
 
   _onShare: function Reader_onShare() {
     if (!this._article)
       return;
 
     gChromeWin.sendMessageToJava({
       type: "Reader:Share",