mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
archive local bookmarks before wiping
--HG-- extra : rebase_source : dd54af2118cf60c9e4f4b3bf08b7a5c61e9e78b8
This commit is contained in:
parent
c80471a7c9
commit
3244ad9b4b
@ -917,6 +917,11 @@ BookmarksStore.prototype = {
|
||||
},
|
||||
|
||||
wipe: function BStore_wipe() {
|
||||
// some nightly builds of 3.7 don't have this function
|
||||
try {
|
||||
PlacesUtils.archiveBookmarksFile(null, true);
|
||||
} catch(e) {}
|
||||
|
||||
for (let [guid, id] in Iterator(kSpecialIds))
|
||||
if (guid != "places")
|
||||
this._bms.removeFolderChildren(id);
|
||||
|
Loading…
Reference in New Issue
Block a user