From a6fbc57aa6184fadb2a1167d891b18f90ede849d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:22:50 -0300 Subject: [PATCH] apply version updates (#1597) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changes/allow-downloads-default.md | 5 ----- .changes/app-bound-domains.md | 6 ------ .changes/cookies-api.md | 5 ----- .../fix-webkitgtk-webviewuriloader-deadlock.md | 5 ----- .changes/ios-new-window-req-handler.md | 5 ----- .changes/linux-download-handler-destination.md | 5 ----- .changes/linux-new-window-req-handler.md | 5 ----- .changes/macos-new-window-req-handler.md | 5 ----- .changes/new-window-req-handler-rfactor.md | 5 ----- .changes/windows-window-open-disable.md | 5 ----- CHANGELOG.md | 14 ++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- 14 files changed, 17 insertions(+), 54 deletions(-) delete mode 100644 .changes/allow-downloads-default.md delete mode 100644 .changes/app-bound-domains.md delete mode 100644 .changes/cookies-api.md delete mode 100644 .changes/fix-webkitgtk-webviewuriloader-deadlock.md delete mode 100644 .changes/ios-new-window-req-handler.md delete mode 100644 .changes/linux-download-handler-destination.md delete mode 100644 .changes/linux-new-window-req-handler.md delete mode 100644 .changes/macos-new-window-req-handler.md delete mode 100644 .changes/new-window-req-handler-rfactor.md delete mode 100644 .changes/windows-window-open-disable.md diff --git a/.changes/allow-downloads-default.md b/.changes/allow-downloads-default.md deleted file mode 100644 index abdbcd9..0000000 --- a/.changes/allow-downloads-default.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -wry: patch ---- - -Enabled all downloads by default to match WebView2 and browser behavior on all platforms. To disable this, provide a custom `download_started_handler`. diff --git a/.changes/app-bound-domains.md b/.changes/app-bound-domains.md deleted file mode 100644 index 1c09e44..0000000 --- a/.changes/app-bound-domains.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"wry": "patch" ---- - -Add `WebViewBuilder::with_limit_navigations_to_app_bound_domains` only on iOS. -Function is a no-op if iOS version is less than iOS 14. \ No newline at end of file diff --git a/.changes/cookies-api.md b/.changes/cookies-api.md deleted file mode 100644 index 9300716..0000000 --- a/.changes/cookies-api.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": "patch" ---- - -Add `WebView::set_cookie` and `WebView::delete_cookie` APIs. diff --git a/.changes/fix-webkitgtk-webviewuriloader-deadlock.md b/.changes/fix-webkitgtk-webviewuriloader-deadlock.md deleted file mode 100644 index 1c33a51..0000000 --- a/.changes/fix-webkitgtk-webviewuriloader-deadlock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -wry: patch ---- - -On Linux, fix a deadlock, which could occur when destroying a WebView before loading has finished. diff --git a/.changes/ios-new-window-req-handler.md b/.changes/ios-new-window-req-handler.md deleted file mode 100644 index 2dadb0c..0000000 --- a/.changes/ios-new-window-req-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": patch ---- - -Do not fire `new_window_req_handler` on navigation events on macOS and iOS. diff --git a/.changes/linux-download-handler-destination.md b/.changes/linux-download-handler-destination.md deleted file mode 100644 index a4661fb..0000000 --- a/.changes/linux-download-handler-destination.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": "patch" ---- - -On Linux, macOS and iOS, the `download_started_handler` will now get the correct suggested destination path. diff --git a/.changes/linux-new-window-req-handler.md b/.changes/linux-new-window-req-handler.md deleted file mode 100644 index 4e984e0..0000000 --- a/.changes/linux-new-window-req-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": patch ---- - -Fixes `new_window_req_handler` not creating the webview on Linux when executing `window.open()`. diff --git a/.changes/macos-new-window-req-handler.md b/.changes/macos-new-window-req-handler.md deleted file mode 100644 index 236a334..0000000 --- a/.changes/macos-new-window-req-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": patch ---- - -Fixes `new_window_req_handler` not fired on macOS when executing `window.open()`. diff --git a/.changes/new-window-req-handler-rfactor.md b/.changes/new-window-req-handler-rfactor.md deleted file mode 100644 index 724dd5a..0000000 --- a/.changes/new-window-req-handler-rfactor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": minor ---- - -Refactor `WebViewBuilder::with_new_window_req_handler` to allow creating the webview manually. diff --git a/.changes/windows-window-open-disable.md b/.changes/windows-window-open-disable.md deleted file mode 100644 index aa38322..0000000 --- a/.changes/windows-window-open-disable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": minor ---- - -Disable new window creation by default on Windows to match behavior of other platforms. Use `WebViewBuilder::with_new_window_req_handler` to enable. diff --git a/CHANGELOG.md b/CHANGELOG.md index b836a92..10405d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## \[0.53.0] + +- [`1456f8e`](https://github.com/tauri-apps/wry/commit/1456f8e33ad3d05239c2ee71f64e49ef32d48f03) ([#1602](https://github.com/tauri-apps/wry/pull/1602) by [@FabianLars](https://github.com/tauri-apps/wry/../../FabianLars)) Enabled all downloads by default to match WebView2 and browser behavior on all platforms. To disable this, provide a custom `download_started_handler`. +- [`43e78ff`](https://github.com/tauri-apps/wry/commit/43e78ff6b09fe9cac84ff7d73460f170a8c32081) ([#1588](https://github.com/tauri-apps/wry/pull/1588) by [@zphrs](https://github.com/tauri-apps/wry/../../zphrs)) Add `WebViewBuilder::with_limit_navigations_to_app_bound_domains` only on iOS. + Function is a no-op if iOS version is less than iOS 14. +- [`60dba38`](https://github.com/tauri-apps/wry/commit/60dba38ddcc01c428feccea2957adf69128373ef) ([#1569](https://github.com/tauri-apps/wry/pull/1569) by [@WSH032](https://github.com/tauri-apps/wry/../../WSH032)) Add `WebView::set_cookie` and `WebView::delete_cookie` APIs. +- [`88cbb01`](https://github.com/tauri-apps/wry/commit/88cbb019a8d38fbcf7ad015d5f34f9a838a88f98) ([#1561](https://github.com/tauri-apps/wry/pull/1561) by [@dgerhardt](https://github.com/tauri-apps/wry/../../dgerhardt)) On Linux, fix a deadlock, which could occur when destroying a WebView before loading has finished. +- [`eb562ca`](https://github.com/tauri-apps/wry/commit/eb562ca99346fabf2c28d65252d176e2612f3178) ([#1596](https://github.com/tauri-apps/wry/pull/1596) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Do not fire `new_window_req_handler` on navigation events on macOS and iOS. +- [`78634b3`](https://github.com/tauri-apps/wry/commit/78634b3d4dd31651f9e6a3959cbb5f994502a92b) ([#1594](https://github.com/tauri-apps/wry/pull/1594) by [@FabianLars](https://github.com/tauri-apps/wry/../../FabianLars)) On Linux, macOS and iOS, the `download_started_handler` will now get the correct suggested destination path. +- [`5399823`](https://github.com/tauri-apps/wry/commit/5399823a1ecfca4476e7c585c694380c41951766) ([#1600](https://github.com/tauri-apps/wry/pull/1600) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Fixes `new_window_req_handler` not creating the webview on Linux when executing `window.open()`. +- [`eb562ca`](https://github.com/tauri-apps/wry/commit/eb562ca99346fabf2c28d65252d176e2612f3178) ([#1596](https://github.com/tauri-apps/wry/pull/1596) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Fixes `new_window_req_handler` not fired on macOS when executing `window.open()`. +- [`3f978d3`](https://github.com/tauri-apps/wry/commit/3f978d3290aa5cebd6b5feea506557ac0f6e07a7) ([#1601](https://github.com/tauri-apps/wry/pull/1601) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Refactor `WebViewBuilder::with_new_window_req_handler` to allow creating the webview manually. +- [`3f978d3`](https://github.com/tauri-apps/wry/commit/3f978d3290aa5cebd6b5feea506557ac0f6e07a7) ([#1601](https://github.com/tauri-apps/wry/pull/1601) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Disable new window creation by default on Windows to match behavior of other platforms. Use `WebViewBuilder::with_new_window_req_handler` to enable. + ## \[0.52.1] - [`63eaab8`](https://github.com/tauri-apps/wry/commit/63eaab80bad7c5f888893c79690c5b626d015eb3) ([#1573](https://github.com/tauri-apps/wry/pull/1573) by [@Legend-Master](https://github.com/tauri-apps/wry/../../Legend-Master)) Fix `wry::DragDropEvent::Drop::paths` returns random data on Windows diff --git a/Cargo.lock b/Cargo.lock index 442649e..a68899b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4128,7 +4128,7 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "wry" -version = "0.52.1" +version = "0.53.0" dependencies = [ "base64", "block2 0.6.0", diff --git a/Cargo.toml b/Cargo.toml index 5731c73..8da83a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ workspace = {} [package] name = "wry" -version = "0.52.1" +version = "0.53.0" authors = ["Tauri Programme within The Commons Conservancy"] edition = "2021" license = "Apache-2.0 OR MIT" diff --git a/README.md b/README.md index 6aa090a..4b80c2b 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ In order for `wry` to be able to create webviews on Android, there are a few req 3. Your Rust app needs to call `wry::android_setup` function to setup the necessary logic to be able to create webviews later on. 4. Your Rust app needs to call `wry::android_binding!` macro to setup the JNI functions that will be called by `WryActivity` and various other places. -It is recommended to use [`tao`](https://docs.rs/tao/latest/tao/) crate as it provides maximum compatibility with `wry` +It is recommended to use the [`tao`](https://docs.rs/tao/latest/tao/) crate as it provides maximum compatibility with `wry`. ```rust #[cfg(target_os = "android")]