Fixed autofill enabled option
authorMichał Obrembski <m.obrembski@samsung.com>
Wed, 11 Feb 2015 12:36:54 +0000 (13:36 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Autofill popup was shown even if Autofill was turned off
in browser settings. This fixes that behavior.
Reviewed by: Jaesik Chang, Piotr Grad

Change-Id: I6c0763005be3a349c1be31b6709228bdb2c0a2e0
Signed-off-by: Michał Obrembski <m.obrembski@samsung.com>
tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc

index 72754c1..f8407a0 100644 (file)
@@ -136,12 +136,15 @@ void AutofillManagerDelegateEfl::HideAutofillPopup() {
 }
 
 bool AutofillManagerDelegateEfl::IsAutocompleteEnabled() {
-  return GetPrefs()->GetBoolean(autofill::prefs::kAutofillEnabled);
+  if(webview_)
+    return webview_->GetSettings()->autofillProfileForm();
+  return false;
 }
 
 bool AutofillManagerDelegateEfl::IsAutocompleteSavingEnabled() {
   if(webview_)
     return webview_->GetSettings()->formCandidateData();
+  return false;
 }
 
 void AutofillManagerDelegateEfl::HideRequestAutocompleteDialog() {