wry@0.22.0
此内容尚不支持你的语言。
- Added
WebViewAttributes::with_accept_first_mouse
method for macOS. - Breaking change Custom protocol now takes
Request
and returnsResponse
types fromhttp
crate. - Enabled devtools in debug mode by default.
- On Desktop, add
download_started_handler
anddownload_completed_handler
. Seeblob_download
anddownload_event
example 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::Error
and replaced with genericHttpError
variant that can be used to converthttp
crate errors. - Disabled Microsoft SmartScreen by default on Windows.
- Add
WebView::url
to get the current url. - Breaking change Removed
http
module and replaced with re-export ofhttp
crate. - Add
WebviewBuilderExtWindows::with_additionl_browser_args
method to pass additional browser args to Webview2 On Windows. By default wry passes--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection
so 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.
© 2024 Tauri Contributors. CC-BY / MIT