Bug 1120067 - feeds not updating - win.gFolderTreeView doesn't exist in SeaMonkey. r=mkmelin RELEASE_35_END
authorEdmund Wong <ewong@pw-wspx.org>
Sun, 01 Feb 2015 21:04:00 +0200
changeset 25613 3486444fb64545a28df03b9bbee9a9b5b6f732a2
parent 25612 26dc15bce34bfa6e78691c5baf7843eae1401a21
child 25614 af38f7dea38614063cd8ed8f6a9d7f894cc6457a
child 25617 afc55cd55f9cc3c0a0aae5f09689007a71eac264
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1120067
Bug 1120067 - feeds not updating - win.gFolderTreeView doesn't exist in SeaMonkey. r=mkmelin a=IanN for comm-release SeaMonkey 2.32.1 on CLOSED TREE
mailnews/extensions/newsblog/content/FeedUtils.jsm
--- a/mailnews/extensions/newsblog/content/FeedUtils.jsm
+++ b/mailnews/extensions/newsblog/content/FeedUtils.jsm
@@ -536,23 +536,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);
  },