Bug 252387

Summary: Open H5 page in ios-app and occasionally crash when authorized access to the microphone
Product: WebKit Reporter: 894110476
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jer.noble, kkinnunen, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
Problem screenshot none

894110476
Reported 2023-02-16 02:44:25 PST
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
Attachments
Problem screenshot (305.67 KB, image/png)
2023-02-16 02:44 PST, 894110476
no flags
Alexey Proskuryakov
Comment 1 2023-02-20 10:30:22 PST
As far as I can tell, opening this link prompts to install the app. Is this the legacy WebKit API?
Radar WebKit Bug Importer
Comment 2 2023-02-23 02:45:19 PST
youenn fablet
Comment 3 2023-03-09 00:55:47 PST
Can you send me the crash log and/or sysdiagnose (youenn@apple.com?).
Note You need to log in before you can comment on or make changes to this bug.