|
|
|
@ -39,6 +39,7 @@ import kotlinx.coroutines.flow.mapNotNull
|
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
|
import kotlinx.coroutines.withContext
|
|
|
|
|
import mozilla.appservices.places.BookmarkRoot
|
|
|
|
|
import mozilla.appservices.places.uniffi.PlacesException
|
|
|
|
|
import mozilla.components.browser.state.action.ContentAction
|
|
|
|
|
import mozilla.components.browser.state.selector.findCustomTab
|
|
|
|
|
import mozilla.components.browser.state.selector.findCustomTabOrSelectedTab
|
|
|
|
@ -1230,6 +1231,7 @@ abstract class BaseBrowserFragment :
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// Save bookmark, then go to edit fragment
|
|
|
|
|
try {
|
|
|
|
|
val guid = bookmarksStorage.addItem(
|
|
|
|
|
BookmarkRoot.Mobile.id,
|
|
|
|
|
url = sessionUrl,
|
|
|
|
@ -1259,6 +1261,9 @@ abstract class BaseBrowserFragment :
|
|
|
|
|
.show()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e: PlacesException.UrlParseFailed) {
|
|
|
|
|
println("We should do something here")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|