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

This commit is contained in:
Brian Nicholson 2012-07-19 13:28:18 -07:00
Родитель c3bc36aec8
Коммит f95b58411d
2 изменённых файлов: 9 добавлений и 2 удалений

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

@ -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>

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

@ -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;