You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(webview2): add option to disable browser-level autofill on Windows (#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>
Add a WebView option to control browser-level general autofill behavior. This option does not disable password or credit card autofill. On Windows (WebView2), setting it to true disables the general autofill "Suggestions" UI, which may appear even when `autocomplete="off"` is specified on input elements. On Linux, macOS, iOS, and Android, this option is currently unsupported and performs no operation.
Copy file name to clipboardExpand all lines: crates/tauri-cli/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -625,6 +625,11 @@
625
625
"string",
626
626
"null"
627
627
]
628
+
},
629
+
"generalAutofillEnabled": {
630
+
"description": "Controls the WebView's browser-level general autofill behavior.\n\n **This option does not disable password or credit card autofill.**\n\n When set to `false`, the WebView will not automatically populate\n general form fields using previously stored data such as addresses\n or contact information.\n\n If not specified, this is `true` by default.\n\n ## Platform-specific\n\n - **Windows**: Supported. WebView2's autofill feature (called\n\"Suggestions\") may not honor `autocomplete=\"off\"` on input\n elements in some cases.\n - **Linux / Android / iOS / macOS**: Unsupported and performs no\n operation.",
Copy file name to clipboardExpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -625,6 +625,11 @@
625
625
"string",
626
626
"null"
627
627
]
628
+
},
629
+
"generalAutofillEnabled": {
630
+
"description": "Controls the WebView's browser-level general autofill behavior.\n\n **This option does not disable password or credit card autofill.**\n\n When set to `false`, the WebView will not automatically populate\n general form fields using previously stored data such as addresses\n or contact information.\n\n If not specified, this is `true` by default.\n\n ## Platform-specific\n\n - **Windows**: Supported. WebView2's autofill feature (called\n\"Suggestions\") may not honor `autocomplete=\"off\"` on input\n elements in some cases.\n - **Linux / Android / iOS / macOS**: Unsupported and performs no\n operation.",
0 commit comments