зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
10d8f1725c
Коммит
e82afeaa6d
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче