Bug 1601889, use the right function to remove an entry from a Set in BrowserUsageTelemetry.jsm, r=Standard8
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Sat, 28 Dec 2019 15:23:57 +0000
changeset 508466 e3b60f1802a7c0af1e2ddadae22804956c309020
parent 508465 054c4936aadb5f41d632ae9cac0dbe6ec21be5d3
child 508467 32ee210f9ce100279d6fc37ec8f93115eb21a8f7
push id104009
push useropettay@mozilla.com
push dateSat, 28 Dec 2019 16:21:11 +0000
treeherderautoland@e3b60f1802a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs1601889
milestone73.0a1
first release with
nightly linux32
e3b60f1802a7 / 73.0a1 / 20191228212050 / files
nightly linux64
e3b60f1802a7 / 73.0a1 / 20191228212050 / files
nightly mac
e3b60f1802a7 / 73.0a1 / 20191228212050 / files
nightly win32
e3b60f1802a7 / 73.0a1 / 20191228212050 / files
nightly win64
e3b60f1802a7 / 73.0a1 / 20191228212050 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1601889, use the right function to remove an entry from a Set in BrowserUsageTelemetry.jsm, r=Standard8 Picking up somewhat random reviewer for this small fix while chutten is on vacation. Differential Revision: https://phabricator.services.mozilla.com/D58307
browser/modules/BrowserUsageTelemetry.jsm
--- a/browser/modules/BrowserUsageTelemetry.jsm
+++ b/browser/modules/BrowserUsageTelemetry.jsm
@@ -295,17 +295,17 @@ let URICountListener = {
         this._domainSet.size
       );
     }
 
     this._domain24hrSet.add(baseDomain);
     if (gRecentVisitedOriginsExpiry) {
       let timeoutId = setTimeout(() => {
         this._domain24hrSet.delete(baseDomain);
-        this._timeouts.remove(timeoutId);
+        this._timeouts.delete(timeoutId);
       }, gRecentVisitedOriginsExpiry * 1000);
       this._timeouts.add(timeoutId);
     }
   },
 
   /**
    * Reset the counts. This should be called when breaking a session in Telemetry.
    */