Bug 1111788 - Part 1 - include timestamps for "browser:purge-session-history" notification. r=gavin a=lmandel
authorJW Wang <jwwang@mozilla.com>
Thu, 08 Jan 2015 18:50:00 +0100
changeset 250169 6195599f25e0
parent 250168 c7d212eecc8e
child 250170 67145bce29be
push id4521
push usercpearce@mozilla.com
push date2015-03-04 01:22 +0000
treeherdermozilla-beta@8abdbdecd2d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, lmandel
bugs1111788
milestone37.0
Bug 1111788 - Part 1 - include timestamps for "browser:purge-session-history" notification. r=gavin a=lmandel
browser/base/content/sanitize.js
--- a/browser/base/content/sanitize.js
+++ b/browser/base/content/sanitize.js
@@ -244,17 +244,18 @@ Sanitizer.prototype = {
         if (this.range)
           PlacesUtils.history.removeVisitsByTimeframe(this.range[0], this.range[1]);
         else
           PlacesUtils.history.removeAllPages();
 
         try {
           var os = Components.classes["@mozilla.org/observer-service;1"]
                              .getService(Components.interfaces.nsIObserverService);
-          os.notifyObservers(null, "browser:purge-session-history", "");
+          let clearStartingTime = this.range ? String(this.range[0]) : "";
+          os.notifyObservers(null, "browser:purge-session-history", clearStartingTime);
         }
         catch (e) { }
 
         try {
           var predictor = Components.classes["@mozilla.org/network/predictor;1"]
                                     .getService(Components.interfaces.nsINetworkPredictor);
           predictor.reset();
         } catch (e) { }