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

right_sidebar: Avoid 'user' word in class name. #30111

Closed
wants to merge 2 commits into from

Conversation

amanagr
Copy link
Member

@amanagr amanagr commented May 16, 2024

Having 'user' name is class name make chrome treat it as username field and chrome tries to autofill it.

Reproducer:

  • Go to settings > accounts & privacy
  • Click manage your API key
  • Try to autofill your password.

Along with the password being autofilled, right sidebar search is filled with your email.

Having 'user' name is class name make chrome treat it as
username field and chrome tries to autofill it.

Reproducer:
* Go to settings > accounts & privacy
* Click manage your API key
* Try to autofill your password.

Along with the password being autofilled, right sidebar search
is filled with your email.
@zulipbot zulipbot added size: L and removed size: M labels May 16, 2024
@amanagr amanagr changed the title right_sidebar: Avoid 'user' work in class name. right_sidebar: Avoid 'user' word in class name. May 16, 2024
@@ -12,7 +12,7 @@ export class UserSearch {
// details of populating the list when we change.

$widget = $("#user_search_section").expectOne();
$input = $<HTMLInputElement>("input.user-list-filter").expectOne();
$input = $<HTMLInputElement>("input.people-list-filter").expectOne();
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

What if we did buddy-list-filter? I feel like that aligns with the newer buddy_data / buddy_list names we're using.

@timabbott
Copy link
Sponsor Member

Could we better address this issue with autocomplete=off? I feel like we have that set for a lot of similar fields to solve this class of problem, and it seems awkward to have to avoid user- in CSS class names.

@amanagr
Copy link
Member Author

amanagr commented May 17, 2024

We are already using autocomplete=off. Actually even removing the user from class name doesn't fix it. I found that this was just not a consistent reproduce as I might have though. Not sure worth spending a lot of time on it though.

@amanagr amanagr closed this May 17, 2024
@amanagr amanagr deleted the user_search_autofill branch May 17, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants