Skip to content

Commit

Permalink
feat(ipc): enhance request URL checks, update wry, refactor file drop (
Browse files Browse the repository at this point in the history
…#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>
  • Loading branch information
lucasfernog and amrbashir committed Apr 1, 2024
1 parent b78f90b commit 06833f4
Show file tree
Hide file tree
Showing 45 changed files with 1,056 additions and 1,533 deletions.
5 changes: 5 additions & 0 deletions .changes/enhance-ipc-url-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

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).
7 changes: 7 additions & 0 deletions .changes/http-v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'tauri': 'patch:deps'
'tauri-runtime': 'patch'
'tauri-runtime-wry': 'patch'
---

Updated `http` crate to `1.1`
6 changes: 6 additions & 0 deletions .changes/ipc-request-param-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-runtime": patch:breaking
"tauri-runtime-wry": patch:breaking
---

The IPC handler closure now receives a `http::Request` instead of a String representing the request body.
5 changes: 5 additions & 0 deletions .changes/rect-strcut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'patch:feat'
---

Added `Rect` struct.
9 changes: 9 additions & 0 deletions .changes/rename-file-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"tauri": patch:breaking
"tauri-runtime": patch:breaking
"tauri-utils": patch:breaking
"tauri-runtime-wry": patch:breaking
"@tauri-apps/api": patch:breaking
---

Rename `FileDrop` to `DragDrop` on structs, enums and enum variants. Also renamed `file_drop` to `drag_drop` on fields and function names.
5 changes: 5 additions & 0 deletions .changes/runtime-dpi-mod-moved.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-runtime': 'major:breaking'
---

Moved `window::dpi` module to the root of the crate.
9 changes: 9 additions & 0 deletions .changes/tray-rect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'tauri': 'patch:breaking'
---

Refactored the tray icon event struct:

- Changed `TrayIconEvent.icon_rect` type to use the new `tauri::Rect` type.
- Removed `TrayIconEvent.x` and `TrayIconEvent.y` fields and combined them into `TrayIconEvent.position` field.
- Removed `tauri::tray::Rectangle` struct.
5 changes: 5 additions & 0 deletions .changes/webview-bounds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'minor:feat'
---

Add `Webview::bounds` and `Webview::set_bounds` APIs.
5 changes: 5 additions & 0 deletions .changes/wry-0.38.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-runtime-wry": patch:deps
---

Upgraded to `wry@0.38.0`
Loading

0 comments on commit 06833f4

Please sign in to comment.