feat: add WebviewBuilder::on_new_window and WebviewBuilder::on_document_title_changed#13876
feat: add WebviewBuilder::on_new_window and WebviewBuilder::on_document_title_changed#13876lucasfernog merged 14 commits intotauri-apps:devfrom
WebviewBuilder::on_new_window and WebviewBuilder::on_document_title_changed#13876Conversation
Package Changes Through 4deb58fThere 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 VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
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
|
on_new_window still needs quite a bit of work to be introduced to Tauri, I'll open some wry PRs |
* 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
follow-up for #1596 ref tauri-apps/tauri#13876
…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 Ideally I think |
feat: add
WebviewBuilder::on_new_windowandWebviewBuilder::on_document_title_changed