Skip to content

feat: macOS/iOS: add option to disable or enable link previews when building a webview#13090

Merged
lucasfernog merged 5 commits into
tauri-apps:devfrom
Simon-Laux:apple_allow_link_preview
Apr 11, 2025
Merged

feat: macOS/iOS: add option to disable or enable link previews when building a webview#13090
lucasfernog merged 5 commits into
tauri-apps:devfrom
Simon-Laux:apple_allow_link_preview

Conversation

@Simon-Laux

@Simon-Laux Simon-Laux commented Mar 28, 2025

Copy link
Copy Markdown
Contributor

macOS/iOS: add option to disable or enable link previews when building a webview (the webkit api has it enabled by default)

  • WebViewBuilderExtDarwin.allow_link_preview(allow_link_preview: bool)
  • WebViewBuilder.allow_link_preview(allow_link_preview: bool)
  • WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)

I personally only need this to disable link previews, so I would be fine with setting a different default for tauri (like turning it off by default). Or even always disable it and don't expose api to change it.


…g a webview (the webkit api has it enabled by default)

  -  `WebViewBuilderExtDarwin.allow_link_preview(allow_link_preview: bool)`
  -  `WebViewBuilder.allow_link_preview(allow_link_preview: bool)`
  -  `WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)`
@Simon-Laux Simon-Laux requested a review from a team as a code owner March 28, 2025 18:19
@Simon-Laux Simon-Laux changed the title macOS/iOS: add option to disable or enable link previews when building a webview feat: macOS/iOS: add option to disable or enable link previews when building a webview Mar 28, 2025
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through ae2e62b

There are 5 changes which include tauri-bundler with patch, tauri with minor, tauri-runtime with minor, @tauri-apps/api with patch, tauri-runtime-wry 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.4.1 2.4.2
tauri-bundler 2.3.1 2.3.2
tauri-runtime 2.5.1 2.6.0
tauri-runtime-wry 2.5.1 2.6.0
tauri 2.4.1 2.5.0
@tauri-apps/cli 2.4.1 2.4.2
tauri-cli 2.4.1 2.4.2

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 lucasfernog merged commit c1cd0a2 into tauri-apps:dev Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants