Skip to content
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

WebContext segfault on macOS #920

Closed
1 of 2 tasks
jkelleyrtp opened this issue Apr 6, 2023 · 0 comments · Fixed by #922
Closed
1 of 2 tasks

WebContext segfault on macOS #920

jkelleyrtp opened this issue Apr 6, 2023 · 0 comments · Fixed by #922

Comments

@jkelleyrtp
Copy link

Describe the bug
If the webcontext is dropped while the webview is still alive, there will be a segfault since the pointer lifetime is not properly tied to the webview.

We ran into this in Dioxus.

DioxusLabs/dioxus#935

The solution is to keep the pointer around, either internally via making webcontext owned instead of &mut or by leaking it.

Platform and Versions (please complete the following information):
OS: macOS
Rustc: 1.68.2

Would you want to assign yourself to resolve this bug?

  • Yes
  • No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant