Try to fix #2082: as reported by the issue, the webview seems to crash due to an unhandled exception if the application does not have internet access.

patch changes the handling to all exceptions.
This commit is contained in:
Carmelo Messina
2025-05-15 10:49:24 +02:00
parent 8bfceabbde
commit 9f02a6435f
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -308,6 +308,7 @@ Temp-disable-experimental-web-platform-features.patch
Block-leakage-of-urls-in-sandbox-iframes.patch
Temporarily-disable-Tab-Group-Sync-Android.patch
Fix-chromium-build-bugs.patch
Try-to-fix-2082.patch
# adblock patches
eyeo-133.0.6943.49-base.patch
+21
View File
@@ -0,0 +1,21 @@
From: uazo <uazo@users.noreply.github.com>
Date: Thu, 15 May 2025 06:55:56 +0000
Subject: Try to fix 2082
---
.../android_webview/nonembedded/NetworkFetcherTask.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android_webview/nonembedded/java/src/org/chromium/android_webview/nonembedded/NetworkFetcherTask.java b/android_webview/nonembedded/java/src/org/chromium/android_webview/nonembedded/NetworkFetcherTask.java
--- a/android_webview/nonembedded/java/src/org/chromium/android_webview/nonembedded/NetworkFetcherTask.java
+++ b/android_webview/nonembedded/java/src/org/chromium/android_webview/nonembedded/NetworkFetcherTask.java
@@ -248,7 +248,7 @@ public class NetworkFetcherTask {
xCupServerProof,
xRetryAfter);
- } catch (IOException exception) {
+ } catch (Throwable exception) {
Log.w(TAG, "IOException during post request.", exception);
NetworkFetcherTaskJni.get()
.callPostRequestCompleteCallback(
--