Bug 1120067 - feeds not updating - win.gFolderTreeView doesn't exist in SeaMonkey. r=mkmelin a=sledru a=comm-beta (seamonkey2.33) CLOSED TREE
authorEdmund Wong <ewong@pw-wspx.org>
Sun, 01 Feb 2015 21:04:00 +0200
changeset 31137 b1a671eb4b4bfc5f91967646bfcd44f0b4271967
parent 31136 f9af3f281b9568c088cbf2004b36a3bf4bf075f6
child 31138 dca6247fed66692d01d0654ea7fdea726b31ce08
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, sledru, comm-beta
bugs1120067
Bug 1120067 - feeds not updating - win.gFolderTreeView doesn't exist in SeaMonkey. r=mkmelin a=sledru a=comm-beta (seamonkey2.33) CLOSED TREE
mailnews/extensions/newsblog/content/FeedUtils.jsm
--- a/mailnews/extensions/newsblog/content/FeedUtils.jsm
+++ b/mailnews/extensions/newsblog/content/FeedUtils.jsm
@@ -587,23 +587,25 @@ var FeedUtils = {
  * @param  string aProperty       - ftvItem property
  * @param  string aValue          - value
  */
   setFolderPaneProperty: function(aFolder, aProperty, aValue) {
     let win = Services.wm.getMostRecentWindow("mail:3pane");
     if (!aFolder || !win)
       return;
 
-    let row = win.gFolderTreeView.getIndexOfFolder(aFolder);
-    let rowItem = win.gFolderTreeView.getFTVItemForIndex(row);
-    if (rowItem == null)
-      return;
+    if ("gFolderTreeView" in win) {
+      let row = win.gFolderTreeView.getIndexOfFolder(aFolder);
+      let rowItem = win.gFolderTreeView.getFTVItemForIndex(row);
+      if (rowItem == null)
+        return;
 
-    rowItem[aProperty] = aValue;
-    win.gFolderTreeView._tree.invalidateRow(row);
+      rowItem[aProperty] = aValue;
+      win.gFolderTreeView._tree.invalidateRow(row);
+    }
   },
 
   get mFaviconService() {
     delete this.mFaviconService;
     return this.mFaviconService = Cc["@mozilla.org/browser/favicon-service;1"]
                                     .getService(Ci.nsIFaviconService);
  },