-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] APP crash when a web custom protocol request is aborted before or during response #1189
Comments
Seems like this is the cause of #1142? |
Do you have an idea on how to fix this issue? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
if it is not possible to register a custom protocol for http under linux/macos, how does tauri respond to static files? |
Tauri serves the frontend via the
Then you'd have to change the url of the window to your custom scheme. |
Thank you for your prompt response. To help others quickly understand this problem, I write a summary of the above discussion:
|
Is there any update? I experience the same crash on macos with custom protocol. Once the response returned, it crash. |
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: