Bug 1568420 - Port bug 1568285: Remove QI to Ci.nsITreeView (idea/analysis by :bz). r=bz
authorJorg K <jorgk@jorgk.com>
Wed, 24 Jul 2019 23:36:17 +0200
changeset 76423 e2dad5423b3ba2aa4742d4f0e74e0a06ebe92291
parent 76414 bec4c1774b736a6f7fc62a7f3f5c75a924f17b5f
child 76424 e16ebf0a60e6fb1820e555ce31a14ff513f2369a
child 76429 d471c63c8f71cb17d56ae0f8ad5d62a01fffcf07
child 76430 4071dcc6fe8c72a7b92eba247b0d28477db103ae
child 76432 f5dc07feb56e3db11b0b335ff96e2bc2738015a4
push id8886
push usergeoff@darktrojan.net
push dateThu, 25 Jul 2019 00:48:52 +0000
treeherdertry-comm-central@a54ce8505f71 [default view] [failures only]
reviewersbz
bugs1568420, 1568285
Bug 1568420 - Port bug 1568285: Remove QI to Ci.nsITreeView (idea/analysis by :bz). r=bz
mailnews/base/util/jsTreeSelection.js
--- a/mailnews/base/util/jsTreeSelection.js
+++ b/mailnews/base/util/jsTreeSelection.js
@@ -579,17 +579,16 @@ JSTreeSelection.prototype = {
     let view;
     if (this._tree && this._tree.view)
       view = this._tree.view;
     else
       view = this._view;
 
     // We might not have a view if we're in the middle of setting up things
     if (view) {
-      view = view.QueryInterface(Ci.nsITreeView);
       view.selectionChanged();
     }
   },
 
   get currentIndex() {
     if (this._currentIndex == null)
       return -1;
     return this._currentIndex;