From 7fc6cad8b5c83fbe7dac4baea72409d9ac5a5621 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 17 Oct 2024 08:26:10 +0300 Subject: [PATCH] add is_sensitive_input argument --- src/app/browser/window/tab/item/page.rs | 7 ++++++- src/app/browser/window/tab/item/page/input.rs | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 77b769e4..becb8178 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -284,7 +284,12 @@ impl Page { let description = gformat!("{placeholder}"); // Make input form - input.set_new_response(action_page_open, uri, Some(&description), Some(1024)); + input.set_new_response( + action_page_open, uri, + Some(&description), + Some(1024), + "11" == code.as_str() // sensitive input + ); // Update meta meta.borrow_mut().status = Some(status); diff --git a/src/app/browser/window/tab/item/page/input.rs b/src/app/browser/window/tab/item/page/input.rs index 67e5ad67..2ac7440e 100644 --- a/src/app/browser/window/tab/item/page/input.rs +++ b/src/app/browser/window/tab/item/page/input.rs @@ -34,6 +34,7 @@ impl Input { base: Uri, title: Option<&str>, size_limit: Option, + is_sensitive_input: bool, ) { self.widget.update(Some( &Response::new_arc(action_page_open, base, title, size_limit).gobject(),