Bug 380999: Clear places bookmarks on initial import. r=dietrich
This commit is contained in:
Родитель
1274f7998f
Коммит
9a6e8911b1
|
@ -2118,6 +2118,10 @@ nsPlacesImportExportService::ImportHTMLFromFileInternal(nsILocalFile* aFile,
|
|||
// wrap the import in a transaction to make it faster
|
||||
mBookmarksService->BeginUpdateBatch();
|
||||
|
||||
if (aIsImportDefaults) {
|
||||
mBookmarksService->RemoveFolderChildren(mBookmarksRoot);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIParser> parser = do_CreateInstance(kParserCID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче