mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 775042 - Clear downloads when clearing history. r=mfinkle
This commit is contained in:
parent
c3bc36aec8
commit
f95b58411d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user