From 9f02a6435f38c6edd1afa9a74e12786dbe52c7c3 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 15 May 2025 10:49:24 +0200 Subject: [PATCH] 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. --- build/cromite_patches_list.txt | 1 + build/patches/Try-to-fix-2082.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 build/patches/Try-to-fix-2082.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index b5326b92..10779853 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -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 diff --git a/build/patches/Try-to-fix-2082.patch b/build/patches/Try-to-fix-2082.patch new file mode 100644 index 00000000..61fe8358 --- /dev/null +++ b/build/patches/Try-to-fix-2082.patch @@ -0,0 +1,21 @@ +From: uazo +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( +--