Bug 252387 - Open H5 page in ios-app and occasionally crash when authorized access to the microphone
Summary: Open H5 page in ios-app and occasionally crash when authorized access to the ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-16 02:44 PST by 894110476
Modified: 2023-03-09 00:55 PST (History)
4 users (show)

See Also:


Attachments
Problem screenshot (305.67 KB, image/png)
2023-02-16 02:44 PST, 894110476
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?).