Skip to content

Commit

Permalink
Fix #6419: allow video data url navigation (#6422)
Browse files Browse the repository at this point in the history
  • Loading branch information
garvankeeley committed Apr 17, 2020
1 parent 896385a commit 41f316a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ extension BrowserViewController: WKNavigationDelegate {
return
}

// Allow certain application types
if url.hasPrefix("data:application/pdf") || url.hasPrefix("data:application/json") {
// Allow video, and certain application types
if url.hasPrefix("data:video/") || url.hasPrefix("data:application/pdf") || url.hasPrefix("data:application/json") {
decisionHandler(.allow)
return
}
Expand Down

0 comments on commit 41f316a

Please sign in to comment.