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
Родитель 10d8f1725c
Коммит e82afeaa6d
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

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

Просмотреть файл

@ -216,5 +216,11 @@ this.ForgetAboutSite = {
handleCompletion: function() onContentPrefsRemovalFinished(), handleCompletion: function() onContentPrefsRemovalFinished(),
handleError: function() {} 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();
} }
}; };