feat: expose wry permission handler API in tauri - #14865
Conversation
Package Changes Through 7efb1bfThere are 14 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-bundler with minor, tauri-build with minor, tauri-macos-sign with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor, @tauri-apps/api with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
832652b to
940e9c4
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Updated this PR after tauri-apps/wry#1654 was merged. Changes in the latest push:
I also ran |
|
Let's sign the past commits in this PR first, so we can focus on the actual changes |
|
These changes would significantly help my project. Thank you for working on it. Hopefully it can be merged soon. Cheers. |
b1fb0b5 to
2494af9
Compare
|
Done. I rebuilt the PR on top of the latest |
|
I think you have quite a few merge conflicts that bought back the old code |
2494af9 to
df37d6f
Compare
|
Fixed. The previous rebuild accidentally brought back unrelated |
|
We can ignore the apple clippy for now and fix it in another PR with a |
|
One thing I noticed while checking this again: On WKWebView that changes the existing no-handler behavior: no handler uses Is that change intended, or should I preserve the old no-handler behavior before this is merged? I can fix it, but wanted to confirm the expected behavior first. |
|
Addressed the review feedback in
Local checks:
|
Legend-Master
left a comment
There was a problem hiding this comment.
Thanks! Just a bit of nitpicks and we can get this merged after the wry release
Legend-Master
left a comment
There was a problem hiding this comment.
Thanks for the long standing effort!
Description
This PR exposes the expanded
wryPermission Handler API through Tauri, allowing applications to intercept and respond to WebView permission requests across supported backends.It wires the permission handler through
tauri-runtime,tauri-runtime-wry, the global Tauri builder, and individual webview builders. Until the matchingwrychanges from tauri-apps/wry#1654 are released,tauri-runtime-wrypoints at the merged Wry revision.Key Changes
PermissionKindandPermissionResponsetypes totauri-runtime, mirroring Wry's permission API and platform-specific behavior.on_permission_requesttotauri::Builder, allowing applications to handle permission requests globally for all webviews.on_permission_requesttotauri::webview::WebviewBuilderandtauri::window::WebviewWindowBuilderfor individual webviews and windows.Permission Resolution Order
Defaultor is not configured.Defaultdelegates to Wry's platform behavior. If no handler is configured, the existing native path is left unchanged.