Created attachment 465024 [details] Problem screenshot [Problem description]: On our page([H5 Link]:https://new-birthday-gift-pro.pf.jd.com), click the "I know" button to authorize access to the microphone, and some users occasionally crash [Exception location]: Application thread exception NSInternalInconsistencyException: Call must be made on main thread [Exception code line]: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Call must be made on main thread' [Other key exception information]: WebKit::alertForPermission(WebKit::WebPageProxy&, WebKit::MediaPermissionReason, WebCore::SecurityOriginData const&, WTF::CompletionHandler<void (bool)>&&) (in WebKit) + 1684 WebKit::UserMediaPermissionRequestProxy::promptForGetUserMedia() (in WebKit) + 220 WTF::Detail::CallableWrapper<WebKit::UserMediaPermissionRequestManagerProxy::processUserMediaPermissionValidRequest(WTF::Vector<WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&, WTF::Vector<WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&, WTF::String&&)::$_11, void, bool>::call(bool) (in WebKit) + 304
As far as I can tell, opening this link prompts to install the app. Is this the legacy WebKit API?
<rdar://problem/105825254>
Can you send me the crash log and/or sysdiagnose (youenn@apple.com?).