Avoid opening blobs as webpages
Fixes #10060 (cherry picked from commit 548f7f415a28529522f5aef0d53546e8bc68957e) (cherry picked from commit 7ccb8eaaf24d5621f831826afd56210c6d93f2c7) # Conflicts: # app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt
This commit is contained in:
parent
d14cf0ccea
commit
72ac3c275c
@ -123,7 +123,13 @@ fun WebViewScreenContent(
|
||||
view: WebView?,
|
||||
request: WebResourceRequest?,
|
||||
): Boolean {
|
||||
request?.let {
|
||||
request?.let {
|
||||
// Don't attempt to open blobs as webpages
|
||||
if (it.url.toString().startsWith("blob:http")) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Continue with request, but with custom headers
|
||||
view?.loadUrl(it.url.toString(), headers)
|
||||
}
|
||||
return super.shouldOverrideUrlLoading(view, request)
|
||||
|
Loading…
x
Reference in New Issue
Block a user