Skip to content

Commit 06833f4

Browse files
feat(ipc): enhance request URL checks, update wry, refactor file drop (#9100)
* feat(ipc): enhance request URL checks * actually use req url * fix windows, tests * wry 0.38, file drop refactor * wry 0.38.1 * adjust for windows [skip ci] * wry 0.38.2 [skip ci] * update to latest tao, wry, muda and tray-icon * change tag * serde * use published crates * downgrade cargo-platform to 0.1.7 --------- Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
1 parent b78f90b commit 06833f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1056
-1533
lines changed

.changes/enhance-ipc-url-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:enhance
3+
---
4+
5+
Enhance the IPC URL check by using the Origin header on the custom protocol IPC and the new request URI field on the postMessage IPC instead of using `Webview::url()` which only returns the URL of the main frame and is not suitable for iframes (iframe URL fetch is still not supported on Android and on Linux when using the postMessage IPC).

.changes/http-v1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'tauri': 'patch:deps'
3+
'tauri-runtime': 'patch'
4+
'tauri-runtime-wry': 'patch'
5+
---
6+
7+
Updated `http` crate to `1.1`
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-runtime": patch:breaking
3+
"tauri-runtime-wry": patch:breaking
4+
---
5+
6+
The IPC handler closure now receives a `http::Request` instead of a String representing the request body.

.changes/rect-strcut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch:feat'
3+
---
4+
5+
Added `Rect` struct.

.changes/rename-file-drop.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"tauri": patch:breaking
3+
"tauri-runtime": patch:breaking
4+
"tauri-utils": patch:breaking
5+
"tauri-runtime-wry": patch:breaking
6+
"@tauri-apps/api": patch:breaking
7+
---
8+
9+
Rename `FileDrop` to `DragDrop` on structs, enums and enum variants. Also renamed `file_drop` to `drag_drop` on fields and function names.

.changes/runtime-dpi-mod-moved.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-runtime': 'major:breaking'
3+
---
4+
5+
Moved `window::dpi` module to the root of the crate.

.changes/tray-rect.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'tauri': 'patch:breaking'
3+
---
4+
5+
Refactored the tray icon event struct:
6+
7+
- Changed `TrayIconEvent.icon_rect` type to use the new `tauri::Rect` type.
8+
- Removed `TrayIconEvent.x` and `TrayIconEvent.y` fields and combined them into `TrayIconEvent.position` field.
9+
- Removed `tauri::tray::Rectangle` struct.

.changes/webview-bounds.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'minor:feat'
3+
---
4+
5+
Add `Webview::bounds` and `Webview::set_bounds` APIs.

.changes/wry-0.38.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-runtime-wry": patch:deps
3+
---
4+
5+
Upgraded to `wry@0.38.0`

0 commit comments

Comments
 (0)