You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initiating a register_uri_scheme_protocol request from the web side, if the web aborts the request before or during the response, the macOS APP crashes.
Reproduction
Register a register_asynchronous_uri_scheme_protocol.
From the web side, initiate a request using this protocol and abort the request before the response.
The APP crashes 100% of the time.
Expected behavior
Before responding, the responder should check if the request has been canceled. If the request has been canceled, do not send the response.
Or, during the response, catch exceptions to prevent the APP from crashing and quitting abruptly when the request is terminated.
Describe the bug
When initiating a
register_uri_scheme_protocol
request from the web side, if the web aborts the request before or during the response, the macOS APP crashes.Reproduction
register_asynchronous_uri_scheme_protocol
.Expected behavior
responder
should check if the request has been canceled. If the request has been canceled, do not send the response.Full
tauri info
outputStack trace
Additional context
Related code:
wry/src/wkwebview/mod.rs
Line 272 in 5789bf7
Related issue: tauri-apps/tauri#9177
The text was updated successfully, but these errors were encountered: