Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haanhvu
Copy link
Collaborator

@haanhvu haanhvu commented Jan 30, 2025

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 prompt 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 prompt.

Fixes #1707

@svillar svillar added the chromium Issues related to the new Chromium backend label Jan 31, 2025
…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 prompt 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 prompt.

    Fixes Igalia#1707
Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to admit that I don't really understand what the problem is. I don't see the relationship between password saving and autofill. Actually if you check the implementation of PromptDelegate.java the onLoginSave method does depend on LoginAutocompleteEnabled not in AutoFillEnabled. So I'm a bit lost about why this is needed and whether this fixes anything

@haanhvu
Copy link
Collaborator Author

haanhvu commented Feb 5, 2025

I have to admit that I don't really understand what the problem is. I don't see the relationship between password saving and autofill. Actually if you check the implementation of PromptDelegate.java the onLoginSave method does depend on LoginAutocompleteEnabled not in AutoFillEnabled. So I'm a bit lost about why this is needed and whether this fixes anything

As stated in #1707, the problem is if users enable password saving and disable autofill, password saving dialog doesn't show. And this only happens in Chromium. You could reproduce this with the main branch.

You're right about onLoginSave depending on LoginAutocompleteEnabled not AutoFillEnabled. However in Chromium implementation, onLoginSave is called by saveOrUpdatePassword in PromptDelegateImpl.java:

mDelegate.onLoginSave(mSession, mLoginSavePrompt);

This is in turn called by WolvicPasswordManagerClient in native code: https://github.com/Igalia/wolvic-chromium/blob/40804fadc808686bdebc54a71196c4b9a3ff68c7/wolvic/browser/autocomplete/wolvic_password_manager_client.cc#L164

However, password manager client checks if saving and autofill enabled too, as I stated in #1707 (comment)

Does this make sense to you? I don't know if I missed something, but I checked my change on Quest 3 and it fixed the issue. When I enabled password saving and disabled autofill, password saving dialog now showed.

Also, unlike Gecko, Chromium shows an autofill prompt to ask if you want to autofill in every login after saving. I made this dependent on the autofill option in the Settings now. If users disable autofill, this autofill prompt now doesn't show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chromium Issues related to the new Chromium backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabling 'auto-fill' causes that the 'save-password' dialog is not launched anymore
2 participants