Skip to content

feat: add WebViewBuilder.with_javascript_disabled - #1496

Merged
lucasfernog merged 9 commits into
tauri-apps:devfrom
Simon-Laux:disable-javascript
Mar 2, 2025
Merged

feat: add WebViewBuilder.with_javascript_disabled#1496
lucasfernog merged 9 commits into
tauri-apps:devfrom
Simon-Laux:disable-javascript

Conversation

@Simon-Laux

@Simon-Laux Simon-Laux commented Feb 23, 2025

Copy link
Copy Markdown
Contributor

add WebViewBuilder.with_javascript_disabled to disable javascript.

There are some cases where this is nessesary.
For example I need this for safely displaying HTML emails in delta chat:

closes #986 (which was only solved for windows before)

example to try out: https://github.com/Simon-Laux/tauri-experiments/tree/main/examples/disable_js_wry

Progress

@Simon-Laux
Simon-Laux marked this pull request as ready for review February 23, 2025 08:05
@Simon-Laux
Simon-Laux requested a review from a team as a code owner February 23, 2025 08:05
@github-actions

github-actions Bot commented Feb 23, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through b49b31c

There are 1 changes which include wry with patch

Planned Package Versions

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

package current next
wry 0.50.2 0.50.3

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 left a comment

Copy link
Copy Markdown
Member

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 94ecadb into tauri-apps:dev Mar 2, 2025
WofWca added a commit to WofWca/tauri that referenced this pull request Mar 17, 2025
The initial version of the MR that introduced this to Wry
(tauri-apps/wry#1496)
had no Android implementation, but it has been added
in a later version of the MR, so the comment is no longer valid.
amrbashir pushed a commit to tauri-apps/tauri that referenced this pull request Mar 18, 2025
The initial version of the MR that introduced this to Wry
(tauri-apps/wry#1496)
had no Android implementation, but it has been added
in a later version of the MR, so the comment is no longer valid.
kandrelczyk pushed a commit to kandrelczyk/tauri that referenced this pull request Apr 7, 2025
The initial version of the MR that introduced this to Wry
(tauri-apps/wry#1496)
had no Android implementation, but it has been added
in a later version of the MR, so the comment is no longer valid.
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.

Disable javascript in webview

2 participants