Skip to content

Conversation

@thlstsul
Copy link
Contributor

feat: add WebviewBuilder::on_new_window and WebviewBuilder::on_document_title_changed

@thlstsul thlstsul requested a review from a team as a code owner July 22, 2025 15:29
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Jul 22, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 23, 2025

Package Changes Through 4deb58f

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

lucasfernog added a commit to tauri-apps/wry that referenced this pull request Aug 12, 2025
currently the new_window_req_handler is fired on navigation events, which is incorrect as it calls the handler on iframe navigations and doesn't call it on window.open calls, not matching behavior on other platforms

this PR changes it to run under [`webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:`](https://developer.apple.com/documentation/webkit/wkuidelegate/webview(_:createwebviewwith:for:windowfeatures:)?language=objc) instead

I've noticed this when testing tauri-apps/tauri#13876
@lucasfernog
Copy link
Member

on_new_window still needs quite a bit of work to be introduced to Tauri, I'll open some wry PRs

lucasfernog added a commit to tauri-apps/wry that referenced this pull request Aug 13, 2025
* fix(macos): new_window_req not firing on window.open

currently the new_window_req_handler is fired on navigation events, which is incorrect as it calls the handler on iframe navigations and doesn't call it on window.open calls, not matching behavior on other platforms

this PR changes it to run under [`webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:`](https://developer.apple.com/documentation/webkit/wkuidelegate/webview(_:createwebviewwith:for:windowfeatures:)?language=objc) instead

I've noticed this when testing tauri-apps/tauri#13876

* fix build

* fix coordinates

* fix features
lucasfernog added a commit to tauri-apps/wry that referenced this pull request Aug 13, 2025
lucasfernog added a commit to tauri-apps/wry that referenced this pull request Aug 13, 2025
lucasfernog added a commit to tauri-apps/wry that referenced this pull request Aug 16, 2025
…wn (#1601)

* feat(linux): craete webview on new_window_req

follow-up for #1596

ref tauri-apps/tauri#13876

* refactor: allow new_window_req_handler to create the webview on its own

* add webview getter

* clippy regression

* macos fixes

* enhance platform support

* fix deadlock on windows

* fix mac build
@lucasfernog lucasfernog merged commit 33d0b3f into tauri-apps:dev Aug 16, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Aug 16, 2025
@thlstsul thlstsul deleted the custome branch August 18, 2025 07:44
@Legend-Master
Copy link
Contributor

Legend-Master commented Aug 19, 2025

@lucasfernog Ideally I think tauri-runtime should avoid containing wry specific things and dependencies, they could be made though the R: Runtime generic and implemented in tauri-runtime-wry instead

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.

3 participants