@@ -115,8 +115,9 @@ final class BookmarksPanelViewModel: BookmarksPanelViewModelProtocol {
115115 return
116116 }
117117
118- // After reloading bookmarks, we should also reload our active search results as well, if applicable
119- // That is because our bookmarks results are fetched recursively and backed by a separate data array
118+ // FXIOS-15296: After reloading bookmarks, we should also reload our active search results as well, if applicable.
119+ // This is because our bookmarks results are fetched recursively and backed by a separate data array.
120+ // FIXME: FXIOS-15309 This can be improved.
120121 let completionAfterSetup : @MainActor ( ) -> Void = { [ weak self] in
121122 guard let self else {
122123 completion ( )
@@ -436,11 +437,12 @@ final class BookmarksPanelViewModel: BookmarksPanelViewModelProtocol {
436437 if let self, self . isBookmarksSearchEnabled, self . isShowingSearchResults {
437438 // Reload the bookmarks tree for the current folder. If a bookmark was deleted via search, there is a chance
438439 // a subfolder becomes empty that was previously non-empty. We need to know whether folders in the current
439- // folder contain bookmarks or not because we show an alert when deleting folders with non-empty contents.
440+ // folder contain bookmarks or not because we show an alert when deleting folders with non-empty contents
441+ // (see FXIOS-15296).
440442 //
441- // Note: A race condition exists where the user might try to delete a folder before this refresh happens ,
442- // since we optimistically update the UI but can't synchronously update the bookmarks tree local copy (at
443- // least not easily).
443+ // Note: A race condition exists where the user might try to delete a folder before this refresh completes ,
444+ // since we optimistically update the UI but can't synchronously update the local bookmarks tree copy.
445+ // FIXME: FXIOS-15309
444446 self . reloadData {
445447 completion ( )
446448 }
0 commit comments