The two stream-overlay WebView clients in ui/main/stream/ only override shouldOverrideUrlLoading (and onPageFinished in the Compose one). There is no onReceivedError override on either, so when the Twitch player URL fails to load (network down, blocked DNS, the embed endpoint moved, etc.) the WebView just falls silent and the overlay stays blank with nothing in the log to point at.
StreamWebView.kt:29:
private class StreamWebViewClient : WebViewClient() {
@Deprecated("Deprecated in Java")
override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean { ... }
override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { ... }
}
StreamView.kt:235:
private class StreamComposeWebViewClient(
private val onPageFinished: () -> Unit,
) : WebViewClient() {
override fun onPageFinished(view: WebView?, url: String?) { ... }
@Deprecated("Deprecated in Java")
override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean { ... }
override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { ... }
}
Suggested fix
Add an onReceivedError override on both clients that logs the failing URL + description through the existing KotlinLogging.logger(...) already used elsewhere in the project (e.g. EmoteDiskCache). Gate on request.isForMainFrame so blocked sub-resources do not spam the log on every embed.
A PR with that change is open at #1134.
The two stream-overlay WebView clients in
ui/main/stream/only overrideshouldOverrideUrlLoading(andonPageFinishedin the Compose one). There is noonReceivedErroroverride on either, so when the Twitch player URL fails to load (network down, blocked DNS, the embed endpoint moved, etc.) the WebView just falls silent and the overlay stays blank with nothing in the log to point at.StreamWebView.kt:29:StreamView.kt:235:Suggested fix
Add an
onReceivedErroroverride on both clients that logs the failing URL + description through the existingKotlinLogging.logger(...)already used elsewhere in the project (e.g.EmoteDiskCache). Gate onrequest.isForMainFrameso blocked sub-resources do not spam the log on every embed.A PR with that change is open at #1134.