Bug 1651737 - Correct reference to the search cache invalidation delay. r=daleharvey
authorMark Banner <standard8@mozilla.com>
Thu, 16 Jul 2020 13:19:05 +0000
changeset 540734 72aaa7fb6af1ee58e3e47055c613a01f1cbc81e4
parent 540733 38651ec159358a0e79a47a3bb0c30a11f15fa47e
child 540735 68618a10778e2759e89683168f73513dd951753d
push id121878
push userdharvey@mozilla.com
push dateThu, 16 Jul 2020 13:23:30 +0000
treeherderautoland@72aaa7fb6af1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaleharvey
bugs1651737
milestone80.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1651737 - Correct reference to the search cache invalidation delay. r=daleharvey Differential Revision: https://phabricator.services.mozilla.com/D82942
toolkit/components/search/SearchCache.jsm
--- a/toolkit/components/search/SearchCache.jsm
+++ b/toolkit/components/search/SearchCache.jsm
@@ -158,17 +158,20 @@ class SearchCache {
   _delayedWrite() {
     if (this._batchTask) {
       this._batchTask.disarm();
     } else {
       let task = async () => {
         logConsole.debug("batchTask: Invalidating engine cache");
         await this._write();
       };
-      this._batchTask = new DeferredTask(task, this.CACHE_INVALIDATION_DELAY);
+      this._batchTask = new DeferredTask(
+        task,
+        SearchCache.CACHE_INVALIDATION_DELAY
+      );
     }
     this._batchTask.arm();
   }
 
   /**
    * Ensures any pending writes of the cache are completed.
    *
    * @param {string} origin