mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
0048083884
commit
36640d6eef
@ -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()
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user