1
0
Fork 0

For #3750: Crash when tapping "Blocked" on Google Maps after disabling

location requests.
master
Arturo Mejia 2019-06-29 09:09:20 -04:00 committed by Emily Kager
parent c477c781a5
commit b82340bf1f
2 changed files with 3 additions and 2 deletions

View File

@ -67,4 +67,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [AC #2725](https://github.com/mozilla-mobile/android-components/issues/2725) Updated tracking protectionPolicy to [recommend](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt#L156)
- #2789 Custom tabs is not covering the full screen size.
- #2893, #2673, #2916, #2314: Fix several crashes navigating from external links
- #3750 - Crash when tapping "Blocked" on Google Maps after disabling location requests
### Removed

View File

@ -203,7 +203,7 @@ class QuickSettingsSheetDialogFragment : AppCompatDialogFragment() {
}
is QuickSettingsAction.TogglePermission -> {
lifecycleScope.launch {
lifecycleScope.launch(Dispatchers.IO) {
sitePermissions = quickSettingsComponent.toggleSitePermission(
context = requireContext(),
featurePhone = it.featurePhone,
@ -236,7 +236,7 @@ class QuickSettingsSheetDialogFragment : AppCompatDialogFragment() {
private val sessionObserver = object : Session.Observer {
override fun onUrlChanged(session: Session, url: String) {
super.onUrlChanged(session, url)
lifecycleScope.launch {
lifecycleScope.launch(Dispatchers.IO) {
val host = session.url.toUri()?.host
val sitePermissions: SitePermissions? = host?.let {
val storage = requireContext().components.core.permissionStorage