wry@0.22.0
此内容尚不支持你的语言。
- Added
WebViewAttributes::with_accept_first_mousemethod for macOS. - Breaking change Custom protocol now takes
Requestand returnsResponsetypes fromhttpcrate. - Enabled devtools in debug mode by default.
- On Desktop, add
download_started_handleranddownload_completed_handler. Seeblob_downloadanddownload_eventexample for their usages. - Fix double permission dialog on macOS 12+ and iOS 15+.
- Focus webview when window starts moving or resizing on Windows to automatically close
<select>dropdowns. Also notify webview2 whenever the window position/size changes which fixes the<select>dropdown position - On Windows, hide the webview when the window is minimized to reduce memory and cpu usage.
- Internally return with error from custom protocol if an invalid uri was requseted such as
wry://which doesn’t contain a host. - Support cross compiling ios on a non macos host.
- On Linux, Improve custom protocol with http headers / method added to request, and status code / http headers added to response. This feature is 2.36 only, version below it will fallback to previous implementation.
- On macOS, add WKWebview as subview of existing NSView directly.
- Keypress on non-input element no longer triggers unsupported key feedback sound.
- Remove the IPC script message handler when the WebView is dropped on macOS.
- Breaking change Removed http error variants from
wry::Errorand replaced with genericHttpErrorvariant that can be used to converthttpcrate errors. - Disabled Microsoft SmartScreen by default on Windows.
- Add
WebView::urlto get the current url. - Breaking change Removed
httpmodule and replaced with re-export ofhttpcrate. - Add
WebviewBuilderExtWindows::with_additionl_browser_argsmethod to pass additional browser args to Webview2 On Windows. By default wry passes--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtectionso if you use this method, you also need to disable these components by yourself if you want. - On Windows, fix canonical reason for custom protocol response.
- On macOS, make the webview first responder.
© 2025 Tauri Contributors. CC-BY / MIT