Skip to content

Commit

Permalink
Ref brave/brave-ios#7835, brave/brave-ios#8494: Fix handling of Exter…
Browse files Browse the repository at this point in the history
…nal URL when in third-party frames but active tab brave/brave-ios#8495 (brave/brave-ios#8532)
  • Loading branch information
soner-yuksel committed Dec 7, 2023
1 parent 03f1b55 commit 24e860b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,8 @@ extension BrowserViewController {
}
}
popup.addButton(title: Strings.openExternalAppURLAllow, type: .primary) { [weak tab] () -> PopupViewDismissType in
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:]) { didOpen in
openedURLCompletionHandler(!didOpen)
}
} else {
openedURLCompletionHandler(true)
UIApplication.shared.open(url, options: [:]) { didOpen in
openedURLCompletionHandler(!didOpen)
}
removeTabIfEmpty()
tab?.isExternalAppAlertPresented = false
Expand Down

0 comments on commit 24e860b

Please sign in to comment.