add option to force v1 postMessage ipc protocol #8887
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's important to have the ability to control whether to use the old IPC protocol or the newer one. For instance, because the new method uses fetch, we have issues like #8476.
So, I added the ability to force using the v1
postMessage
IPC
protocol by activating theforce-ipc-v1-protocol
feature in the Tauri dependency.I tested it on
MacOS
/Windows
both when activated and not, and it works.Also it solved for me the
CSP
issues in windows.https://discord.com/channels/616186924390023171/1201542436040757248
Update
Looks like it doesn't work on
Windows
when returning JSON value from rust, checking it. (it works with strings)Update1
Solved in second commit. need review