NEW 275244
IOS application using WKWebView occasionally loads all webpages with white screen
https://bugs.webkit.org/show_bug.cgi?id=275244
Summary IOS application using WKWebView occasionally loads all webpages with white sc...
smile
Reported 2024-06-07 00:19:59 PDT
We used WKWebview to load H5 pages in iOS applications, but we found that sometimes there is a white screen when WKWebview loads H5 pages, and when this issue occurs, all H5 pages will be white. We checked the code and found that the webView: didFinishNavigation: proxy method was not called when the page went white. I want to know under what circumstances WKWebview cannot load any H5 page.
Attachments
Alexey Proskuryakov
Comment 1 2024-06-07 17:24:16 PDT
Thank you for the report. This is not a question that can be answered in general. When in state, please file a Feedback Assistant report with a sysdiagnose, and we will look into what happens in this particular case. Please post the feedback ID here once you do!
smile
Comment 2 2024-06-10 19:39:07 PDT
When a white screen occurs, there are no error logs. Just webView: didFinishNavigation: was not called, even if I create a new WKWebView to load an HTML page, the same situation applies. Unless I kill the app process and restart it, it can be restored. This issue does not occur every time we start our app, but it occasionally occurs. Once it occurs, any WKWebview loading an HTML page will result in a white screen. This problem has been bothering us for a long time, but we don't know how to solve it. I want to know if there is a situation within the webkit framework that would render the entire wkwebview process unusable, resulting in all wkwebviews being unable to load HTML pages.
Alexey Proskuryakov
Comment 3 2024-06-11 09:04:38 PDT
Yes, I understand that you are asking a general question. You can search Bugzilla to see known issues (and I don't expect that you would find anything relevant). We will need to investigate a specific case with logs and possibly more to find out what is happening here.
smile
Comment 4 2024-06-12 03:10:25 PDT
The current problem is that when the problem occurs, we also do not have useful logs to analyze the cause of the problem. When we debug our App code using Xcode, we cannot see the source code of the webkit framework, so we are also unable to add our own log printing within the webkit framework. Does the webkit framework have any switches that can output more logs in abnormal scenarios?
Alexey Proskuryakov
Comment 5 2024-06-12 18:56:02 PDT
That would be the sysdiagnose, Feedback Assistant should offer an easy way to collect that after you observe the issue. Unless you are talking about triggering more logs programmatically and remotely? I don't think that is possible.
Radar WebKit Bug Importer
Comment 6 2024-06-14 00:20:13 PDT
smile
Comment 7 2024-06-25 01:53:16 PDT
I have provided feedback on this issue through Feedback Assistant, and the feedback ID is 13952884.
Alexey Proskuryakov
Comment 8 2024-06-25 08:45:15 PDT
Thank you! rdar://130057058
smile
Comment 9 2024-06-30 19:38:31 PDT
Hello, have you found any issues with the system diagnostic logs that I have provided feedback on?
smile
Comment 10 2024-07-07 18:45:15 PDT
Can you give me a reply? Thank you very much!
smile
Comment 11 2024-07-14 23:09:44 PDT
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service I got the error above. When a white screen appears, what is the problem and how can I recover it.
Note You need to log in before you can comment on or make changes to this bug.