archive local bookmarks before wiping

--HG--
extra : rebase_source : dd54af2118cf60c9e4f4b3bf08b7a5c61e9e78b8
This commit is contained in:
Mike Connor 2009-11-25 17:09:32 -08:00
parent c80471a7c9
commit 3244ad9b4b

View File

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