Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Avoid opening blobs as webpages

Fixes #10060
Cette révision appartient à :
arkon 2023-10-25 09:18:59 -04:00
Parent d9c0b1ce7d
révision 548f7f415a

Voir le fichier

@ -100,6 +100,12 @@ fun WebViewScreenContent(
request: WebResourceRequest?,
): Boolean {
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)