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

Description 894110476 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
Comment 1 Alexey Proskuryakov 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?
Comment 2 Radar WebKit Bug Importer 2023-02-23 02:45:19 PST
<rdar://problem/105825254>
Comment 3 youenn fablet 2023-03-09 00:55:47 PST
Can you send me the crash log and/or sysdiagnose (youenn@apple.com?).