зеркало из https://github.com/mozilla/gecko-dev.git
archive local bookmarks before wiping
--HG-- extra : rebase_source : dd54af2118cf60c9e4f4b3bf08b7a5c61e9e78b8
This commit is contained in:
Родитель
c80471a7c9
Коммит
3244ad9b4b
|
@ -917,6 +917,11 @@ BookmarksStore.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
wipe: function BStore_wipe() {
|
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))
|
for (let [guid, id] in Iterator(kSpecialIds))
|
||||||
if (guid != "places")
|
if (guid != "places")
|
||||||
this._bms.removeFolderChildren(id);
|
this._bms.removeFolderChildren(id);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче