You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tauri): prompt before preview origins capture media #12566
The native Tauri preview WKWebView silently grants camera and microphone capture requests from remote pages once the host app has the corresponding macOS TCC permission.
Observed behavior
Grant Zencode microphone or camera access at the app level (for example, microphone access used by dictation).
Open a remote origin in a native preview tab.
Let the page call navigator.mediaDevices.getUserMedia(...).
Wry 0.55.1's WryWebViewUIDelegate::request_media_capture_permission returns WKPermissionDecision::Grant unconditionally, so WebKit does not show an origin-level prompt.
Source evidence: wry-0.55.1/src/wkwebview/class/wry_web_view_ui_delegate.rs, in webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:.
Expected behavior
Each preview origin should receive WebKit's normal origin permission prompt. The preview-specific delegate must preserve Wry's other UI delegate behavior, including file upload panels and new-window handling.
Affected scope
Native macOS Tauri preview tabs using WKWebView. The Electron preview path is not affected by this Wry delegate implementation.
Activity