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

fix(linux): don't share UserContentManager between webviews (dev) #1326

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

ollpu
Copy link
Contributor

@ollpu ollpu commented Jul 24, 2024

Fixes #1308

Init scripts are registered to the UserContentManager, so if it is shared between WebViews, the init scripts conflict. IPC handlers are also tied to the UserContentManager. Use a unique UserContentManager for each WebView instead of sharing it across the WebContext.

Corresponding PR on the v0.24 branch: #1325

ollpu added 2 commits July 24, 2024 15:14
Fixes tauri-apps#1308

Init scripts are registered to the UserContentManager, so if it is
shared between webviews, the init scripts will conflict. Use a unique
UserContentManager for each WebView instead of sharing it across the
WebContext.
Copy link
Contributor

github-actions bot commented Jul 24, 2024

Package Changes Through 3f1263d

There are 1 changes which include wry with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
wry 0.42.0 0.43.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@ollpu
Copy link
Contributor Author

ollpu commented Jul 24, 2024

Note: This doesn't completely fix opening multiple windows with TAURI_WEBVIEW_AUTOMATION=true in Tauri, because it tries to register the tauri:// custom protocol for each webview separately.

@amrbashir amrbashir merged commit 98d1a83 into tauri-apps:dev Aug 21, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IPC broken when sharing context between WebViews on Linux
2 participants