Bug 881804 (part 6) - Plumb browser UI into predictive network actions to allow clearing data. r=ttaubert r=mossop f=gavin

This commit is contained in:
Nicholas Hurley 2013-09-20 15:24:07 -07:00
parent 0048083884
commit 36640d6eef
2 changed files with 12 additions and 0 deletions

View File

@ -227,6 +227,12 @@ Sanitizer.prototype = {
prefs.clearUserPref("general.open_location.last_url");
}
catch (e) { }
try {
var seer = Components.classes["@mozilla.org/network/seer;1"]
.getService(Components.interfaces.nsINetworkSeer);
seer.reset();
} catch (e) { }
},
get canClear()

View File

@ -216,5 +216,11 @@ this.ForgetAboutSite = {
handleCompletion: function() onContentPrefsRemovalFinished(),
handleError: function() {}
});
// Predictive network data - like cache, no way to clear this per
// domain, so just trash it all
let ns = Cc["@mozilla.org/network/seer;1"].
getService(Ci.nsINetworkSeer);
ns.reset();
}
};