Do not show sugestions when Remember form data is disabled.
authorKarol Furmaniak <k.furmaniak@samsung.com>
Thu, 12 Feb 2015 12:34:21 +0000 (13:34 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
[Problem]: When Remember form data is disabled, popup list with
sugestions appears.

[Solution]: Check if Remember form data is enabled before
showin popup list with sugestions.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11271
Reviewed by: DONGJUN KiM, Piotr Grad

Change-Id: I699766a9601d651013ab7badd73fe12e371cf988
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc

index f8407a0..60ed8c8 100644 (file)
@@ -102,6 +102,9 @@ void AutofillManagerDelegateEfl::ShowAutofillPopup(
     const std::vector<int>& identifiers,
     base::WeakPtr<AutofillPopupDelegate> delegate) {
   DCHECK(web_contents_);
+  // Do not show sugestions when Remember form data is disabled
+  if (!IsAutocompleteSavingEnabled())
+    return;
 #if defined(OS_TIZEN)
   gfx::Rect client_area = web_contents_->GetContainerBounds();
   gfx::RectF element_bounds_in_screen_space = element_bounds +