Bug 1593711 - Remove extraneous QueryInterface calls that broke task filtering. r+a=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 17 Jun 2020 16:43:21 +1200
changeset 39444 5e938016a48af323aea49e67c6d4ea7c499892f5
parent 39443 b3ff74f96880dc9dc72399cb5adf59fa4203e395
child 39445 be0f858d81721c7feb4f398cd78c18c126077c23
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
bugs1593711
Bug 1593711 - Remove extraneous QueryInterface calls that broke task filtering. r+a=pmorris
calendar/base/src/calFilter.js
--- a/calendar/base/src/calFilter.js
+++ b/calendar/base/src/calFilter.js
@@ -792,30 +792,28 @@ calFilter.prototype = {
         if (!next) {
           // there are no more occurrences
           return null;
         }
 
         if (this.isItemInFilters(next)) {
           return next;
         }
-        next.QueryInterface(Ci.calIEvent);
         start = next.startDate || next.entryDate;
       }
 
       // we've hit the maximum number of iterations without finding a match
       cal.WARN("[calFilter] getNextOccurrence: reached maximum iterations for " + aItem.title);
       return null;
     }
     // the parent item doesn't match the filter, we can return the first future exception
     // that matches the filter
     let exMatch = null;
     aItem.recurrenceInfo.getExceptionIds().forEach(function(rID) {
       let ex = aItem.recurrenceInfo.getExceptionFor(rID);
-      ex.QueryInterface(Ci.calIEvent);
       if (
         ex &&
         cal.dtz.now().compare(ex.startDate || ex.entryDate) < 0 &&
         this.isItemInFilters(ex)
       ) {
         exMatch = ex;
       }
     }, this);