Bug 951157 - Clear seer DB when clearing history r=blassey
authorMark Finkle <mfinkle@mozilla.com>
Tue, 17 Dec 2013 20:32:18 -0500
changeset 160997 084f1f645c2d34f3c5b5f6ba44ba6df18ca4c3e1
parent 160996 f472bfe87b49d63eb92b8c088835a89d61ed43ff
child 160998 26e97bf735040a5812eecce546eac110a4902faf
push id3372
push usercbook@mozilla.com
push dateWed, 18 Dec 2013 12:06:28 +0000
treeherderb2g-inbound@0758d09c0962 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs951157
milestone29.0a1
Bug 951157 - Clear seer DB when clearing history r=blassey
mobile/android/modules/Sanitizer.jsm
--- a/mobile/android/modules/Sanitizer.jsm
+++ b/mobile/android/modules/Sanitizer.jsm
@@ -148,16 +148,21 @@ Sanitizer.prototype = {
         }
         catch (e) { }
 
         // Clear last URL of the Open Web Location dialog
         try {
           Services.prefs.clearUserPref("general.open_location.last_url");
         }
         catch (e) { }
+
+        try {
+          var seer = Cc["@mozilla.org/network/seer;1"].getService(Ci.nsINetworkSeer);
+          seer.reset();
+        } catch (e) { }
       },
 
       get canClear()
       {
         // bug 347231: Always allow clearing history due to dependencies on
         // the browser:purge-session-history notification. (like error console)
         return true;
       }