Skip to content

Conversation

@WSH032
Copy link
Contributor

@WSH032 WSH032 commented Jun 23, 2025

@WSH032 WSH032 requested a review from a team as a code owner June 23, 2025 17:10
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Jun 23, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 23, 2025

Package Changes Through 1511888

There are 10 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-utils with minor, tauri-bundler with minor, tauri-macos-sign with minor, tauri-runtime-wry with minor, tauri-runtime with minor, @tauri-apps/api with minor, tauri-plugin with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.7.0 2.8.0
tauri-utils 2.6.0 2.7.0
tauri-macos-sign 2.1.0 2.2.0
tauri-bundler 2.5.2 2.6.0
tauri-runtime 2.7.1 2.8.0
tauri-runtime-wry 2.7.2 2.8.0
tauri-codegen 2.3.1 2.3.2
tauri-macros 2.3.2 2.3.3
tauri-plugin 2.3.1 2.4.0
tauri-build 2.3.1 2.3.2
tauri 2.7.0 2.8.0
@tauri-apps/cli 2.7.1 2.8.0
tauri-cli 2.7.1 2.8.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Copy link
Contributor Author

@WSH032 WSH032 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is ready, but it needs to wait for the Wry PR to be merged and for Tauri to upgrade the Wry version.

Comment on lines +3686 to +3697
WebviewMessage::SetCookie(cookie) => {
if let Err(e) = webview.set_cookie(&cookie) {
log::error!("failed to set webview cookie: {e}");
}
}

WebviewMessage::DeleteCookie(cookie) => {
if let Err(e) = webview.delete_cookie(&cookie) {
log::error!("failed to delete webview cookie: {e}");
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some questions. Why do some methods use a channel to wait for a Result<()> to return, while others simply ignore (log) errors?

@WSH032
Copy link
Contributor Author

WSH032 commented Jun 23, 2025

Oops, something went wrong on Linux. Should we enable x11 for Wry?
Anyway, I'm done for today and will handle it tomorrow.

@AlloryDante
Copy link

Waiting for this to be merged. Cant wait to test it out ❤️

Copy link
Contributor Author

@WSH032 WSH032 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think we should re-export cookie crate at mod webview, otherwise users won't be able to construct Cookie instances directly.

Copy link
Member

@lucasfernog lucasfernog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one!

@lucasfernog lucasfernog merged commit dfadcb7 into tauri-apps:dev Aug 17, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Aug 17, 2025
Message::Webview(
*self.window_id.lock().unwrap(),
self.webview_id,
WebviewMessage::DeleteCookie(cookie.clone().into_owned()),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cookie.clone() here was forgotten to be removed.

use serde::Serialize;
use tauri_macros::default_runtime;
pub use tauri_runtime::webview::{NewWindowFeatures, PageLoadEvent};
pub use tauri_runtime::Cookie;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to expose this as a public API. Wouldn't removing it cause some issues?

Copy link
Contributor

@Legend-Master Legend-Master Aug 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should probably bring it back

Edit: done in #14020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

4 participants