-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chromium: Make password saving option independent from autofill option in Privacy settings #1738
base: main
Are you sure you want to change the base?
Conversation
…n in Privacy settings Currently in Privacy settings in Chromium backend, the password saving option depends on the autofill option. If autofill is disabled, password saving doesn't work whether enabled or not. This is because Chromium doesn't provide an autofill option but provides a login selection dialog that asks users whether to autofill the saved password or not. This commit makes password saving option independent from autofill option. The autofill option now only affects whether to show login selection dialog or not. Fixes Igalia#1707
for (int i = 0; i < forms.length; i++) { | ||
options[i] = new WAutocomplete.LoginSelectOption(fromPasswordForm(forms[i])); | ||
} | ||
if (showLoginSelectDialog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave most of the code unchanged and the change more compact if you invert the condition
if (!showLoginSelectionDialog)
return false;
for (int i = 0; i < username.length; i++) { | ||
options[i] = new WAutocomplete.LoginSelectOption(fromUsername(i, username[i])); | ||
} | ||
if (showLoginSelectDialog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
// Instead, it provides a login selection dialog that let users decide whether to autofill the saved password or not. | ||
// We'll only show this dialog if users enable autofill. | ||
showLoginSelectDialog = SettingsStore.getInstance(context).isAutoFillEnabled(); | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. For Gecko it'll return true unconditionally even if autofill is disabled.
Chromium: Make password saving option independent from autofill option in Privacy settings
Currently in Privacy settings in Chromium backend, the password saving option depends on the autofill option. If autofill is disabled, password saving doesn't work whether enabled or not. This is because Chromium doesn't provide an autofill option but provides a login selection dialog that asks users whether to autofill the saved password in each login. This commit makes password saving option independent from autofill option. The autofill option now only affects whether to show login selection dialog or not.
Fixes #1707