Skip to content

feat(webview2): add option to disable browser-level autofill on Windows#14722

Merged
Legend-Master merged 15 commits into
tauri-apps:devfrom
aoxiangtianyu-go:disable-autofill
Apr 23, 2026
Merged

feat(webview2): add option to disable browser-level autofill on Windows#14722
Legend-Master merged 15 commits into
tauri-apps:devfrom
aoxiangtianyu-go:disable-autofill

Conversation

@aoxiangtianyu-go

@aoxiangtianyu-go aoxiangtianyu-go commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add an application-level option to control browser-level autofill and form suggestions on Windows (WebView2), based on existing support in wry.

Motivation

User reports indicate that:

  • autocomplete="off" is not reliably respected on Windows WebView2
  • WebView2 "Suggestions" may still display autofill UI

Exposing this option allows applications to explicitly control this behavior.

Related issues:

Testing

  • JavaScript API tested locally with a minimal Tauri application

@aoxiangtianyu-go aoxiangtianyu-go marked this pull request as ready for review April 15, 2026 16:13
@aoxiangtianyu-go aoxiangtianyu-go requested a review from a team as a code owner April 15, 2026 16:13
@Legend-Master Legend-Master added this to the 2.11 milestone Apr 15, 2026
@github-actions

github-actions Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 6c8556a

There are 11 changes which include tauri with minor, @tauri-apps/api with minor, tauri-build with minor, tauri-macos-sign with patch, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils 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.10.1 2.11.0
tauri-utils 2.8.3 2.9.0
tauri-macos-sign 2.3.3 2.3.4
tauri-bundler 2.8.1 2.9.0
tauri-runtime 2.10.1 2.11.0
tauri-runtime-wry 2.10.1 2.11.0
tauri-codegen 2.5.5 2.5.6
tauri-macros 2.5.5 2.5.6
tauri-plugin 2.5.4 2.6.0
tauri-build 2.5.6 2.6.0
tauri 2.10.3 2.11.0
@tauri-apps/cli 2.10.1 2.11.0
tauri-cli 2.10.1 2.11.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

Comment thread .changes/.disable-autofill.md Outdated
Comment thread packages/api/src/window.ts Outdated
Comment thread crates/tauri-runtime/src/webview.rs Outdated
Comment thread crates/tauri-runtime/src/webview.rs Outdated
Comment thread crates/tauri-runtime-wry/src/lib.rs Outdated
aoxiangtianyu-go and others added 2 commits April 23, 2026 11:57
Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks

@Legend-Master Legend-Master merged commit 001c8fe into tauri-apps:dev Apr 23, 2026
28 checks passed
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…ws (tauri-apps#14722)

* feat(webview2): add option to disable browser-level autofill on Windows

* docs(api): set disableAutofill api since to 2.11.0

* docs(disable_autofill ): unify documentation

* Update .changes/.disable-autofill.md

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* refactor(runtime): rename disable_autofill to general_autofill_enabled

* refactor(api): delete general autofill option in WindowOptions

Co-authored-by: Copilot <copilot@github.com>

* Update crates/tauri-runtime-wry/src/lib.rs

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* fix: fix default value for general_autofill_enabled

* fix(schema): fix default value for general_autofill_enabled

* Clean up

* Revert new line

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…ws (tauri-apps#14722)

* feat(webview2): add option to disable browser-level autofill on Windows

* docs(api): set disableAutofill api since to 2.11.0

* docs(disable_autofill ): unify documentation

* Update .changes/.disable-autofill.md

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* refactor(runtime): rename disable_autofill to general_autofill_enabled

* refactor(api): delete general autofill option in WindowOptions

Co-authored-by: Copilot <copilot@github.com>

* Update crates/tauri-runtime-wry/src/lib.rs

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* fix: fix default value for general_autofill_enabled

* fix(schema): fix default value for general_autofill_enabled

* Clean up

* Revert new line

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
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