NEW 272295
WKWebView sometimes experiences continuous white screen until the app restarts to load the page normally.
https://bugs.webkit.org/show_bug.cgi?id=272295
Summary WKWebView sometimes experiences continuous white screen until the app restart...
carvetime
Reported 2024-04-06 23:56:57 PDT
Our app occasionally experiences a persistent white screen issue when loading H5 pages using WKWebView. Once this persistent white screen problem occurs, all subsequent WKWebView loads also result in white screens. Upon investigation through console logs, we found that the WKWebView delegate method "didCommitNavigation" is being executed, but the delegate methods "didFailNavigation" and "didFinishNavigation" are not. Additionally, network connectivity has been verified as normal. It feels like JavaScript is stuck in this scenario. We also found the following suspicious logs in the console: 1、Should process URL called 2、Fetching native takeover URLs 3、Native takeover URLs fetched 4、URL shouldn't be processed 5、Failed to request allowed query parameters from WebPrivacy Could you please help identify the causes behind the issues described above, and suggest any effective approaches our app can take to resolve or mitigate such problems? Thank you.
Attachments
Alexey Proskuryakov
Comment 1 2024-04-08 10:21:10 PDT
Thank you for the report. What is an "H5 page"? Could you please share steps to reproduce the two could follow?
Radar WebKit Bug Importer
Comment 2 2024-04-13 23:57:12 PDT
carvetime
Comment 3 2024-04-14 00:00:56 PDT
"H5 page" is an HTML Web Page.
Ahmad Saleem
Comment 4 2024-04-15 04:28:54 PDT
@carvetime - can you share reduction to help us reproduce this bug with steps to reproduce? e.g., 1) Open this 'reduction' (.html - attached to bug) on [iOS / macOS etc.] 2) Click or move this etc. Actual Result: ABC Expected Result: XYZ ___ It would help immensely. Also if you can share also detail whether it was working with iOS or macOS 17.x or 16.x release?
carvetime
Comment 5 2024-04-18 05:26:54 PDT
hello,I have already emailed you the relevant logs and information. Could you please help me check if there is a bug in the WebKit engine?
King
Comment 6 2024-06-06 20:38:45 PDT
I have the same question。 The phenomenon of the problem is the same as yours. This is an occasional issue. If the user encounters this problem, they must restart the app to solve it。
King
Comment 7 2024-06-06 20:48:16 PDT
It seems that the loading of all websites is abnormal. Some websites have a white screen, Some websites can only render a portion of the elements.
smile
Comment 8 2024-07-14 23:19:52 PDT
I have encountered the same problem, has it been resolved?
Note You need to log in before you can comment on or make changes to this bug.