fix: disable WebView2 general autofill (#7062)

This commit is contained in:
AetherWing
2026-05-21 04:01:31 +00:00
committed by GitHub
parent df92e5d95d
commit bdbc617aff
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -9,5 +9,5 @@
<details>
<summary><strong> 🚀 优化改进 </strong></summary>
- 关闭 autofill 弹出窗口
</details>
+1
View File
@@ -69,6 +69,7 @@ pub async fn build_new_window() -> Result<WebviewWindow, String> {
.min_inner_size(MINIMAL_WIDTH, MINIMAL_HEIGHT)
.visible(false) // 等待主题色准备好后再展示,避免启动色差
.initialization_script(&initial_script)
.general_autofill_enabled(false) // 禁用自动填充
.on_page_load(move |window, payload| {
if payload.event() != PageLoadEvent::Finished {
return;