Bug 775042 - Clear downloads when clearing history. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-07-19 13:28:18 -07:00
parent c3bc36aec8
commit f95b58411d
2 changed files with 9 additions and 2 deletions

View File

@ -68,7 +68,7 @@
<item>true</item>
</string-array>
<string-array name="pref_private_data_keys">
<item>private.data.history</item>
<item>private.data.history_downloads</item>
<item>private.data.formdata</item>
<item>private.data.cookies</item>
<item>private.data.cache</item>

View File

@ -799,7 +799,14 @@ var BrowserApp = {
continue;
try {
sanitizer.clearItem(key);
switch (key) {
case "history_downloads":
sanitizer.clearItem("history");
sanitizer.clearItem("downloads");
break;
default:
sanitizer.clearItem(key);
}
} catch (e) {
dump("sanitize error: " + e);
success = false;