mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
3b785b7ae2
commit
9000e8ce5d
@ -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()
|
||||
|
@ -219,5 +219,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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user