fix: a few regressions from previous PRs - #23
Conversation
Greptile SummaryThis PR attempts to fix regressions from previous PRs by renaming Key changes:
Confidence Score: 0/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant WebviewWindow
participant WebviewWindowBuilder
participant WryWebviewDispatcher
participant WebviewRuntime
Note over WebviewWindowBuilder: Regression fixes applied
User->>WebviewWindowBuilder: on_new_window(url, features)
WebviewWindowBuilder->>WebviewWindowBuilder: window_features(features)
Note over WebviewWindowBuilder: Renamed from with_window_features
WebviewWindowBuilder->>WebviewWindowBuilder: Apply size & position
WebviewWindowBuilder->>WebviewWindow: build()
User->>WryWebviewDispatcher: delete_cookie(cookie)
WryWebviewDispatcher->>WebviewRuntime: WebviewMessage::SetCookie
Note over WryWebviewDispatcher,WebviewRuntime: BUG: Should be DeleteCookie!
WebviewRuntime->>WebviewRuntime: set_cookie() called instead
Note over WebviewWindow: Cookie re-export added<br/>from tauri_runtime::Cookie
|
| *self.window_id.lock().unwrap(), | ||
| self.webview_id, | ||
| WebviewMessage::DeleteCookie(cookie.clone().into_owned()), | ||
| WebviewMessage::SetCookie(cookie.into_owned()), |
There was a problem hiding this comment.
logic: delete_cookie is sending SetCookie instead of DeleteCookie, making cookie deletion impossible
| WebviewMessage::SetCookie(cookie.into_owned()), | |
| WebviewMessage::DeleteCookie(cookie.into_owned()), |
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/tauri-runtime-wry/src/lib.rs
Line: 1718:1718
Comment:
**logic:** `delete_cookie` is sending `SetCookie` instead of `DeleteCookie`, making cookie deletion impossible
```suggestion
WebviewMessage::DeleteCookie(cookie.into_owned()),
```
How can I resolve this? If you propose a fix, please make it concise.| self.window_builder = self.window_builder.position(position.x, position.y); | ||
| pub fn window_features(mut self, features: NewWindowFeatures) -> Self { | ||
| if let Some(size) = features.size() { | ||
| self.window_builder = self.window_builder.inner_size(size.width, size.height); |
There was a problem hiding this comment.
syntax: Extra spaces between size.width, and size.height
| self.window_builder = self.window_builder.inner_size(size.width, size.height); | |
| self.window_builder = self.window_builder.inner_size(size.width, size.height); |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/tauri/src/webview/webview_window.rs
Line: 1317:1317
Comment:
**syntax:** Extra spaces between `size.width,` and `size.height`
```suggestion
self.window_builder = self.window_builder.inner_size(size.width, size.height);
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.| if let Some(size) = features.size() { | ||
| self.window_builder = self.window_builder.inner_size(size.width, size.height); | ||
| if let Some(position) = features.position() { | ||
| self.window_builder = self.window_builder.position(position.x,position.y); |
There was a problem hiding this comment.
syntax: Missing space after position.x,
| self.window_builder = self.window_builder.position(position.x,position.y); | |
| self.window_builder = self.window_builder.position(position.x, position.y); |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/tauri/src/webview/webview_window.rs
Line: 1321:1321
Comment:
**syntax:** Missing space after `position.x,`
```suggestion
self.window_builder = self.window_builder.position(position.x, position.y);
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.
Benchmark PR from qodo-benchmark#170