Skip to content
Snippets Groups Projects

Fix save password form dialog on CI/CD Registration token

Merged Sascha Eggenberger requested to merge runners-registration-token-ff-pw-fix into master
All threads resolved!

What does this MR do and why?

Fixes a bug where in Firefox the save password dialog appears when visiting the CI/CD project settings page.

Screenshots or screen recordings

Before After
cicd_before cicd_after

How to set up and validate locally

  1. Use Firefox with Ask to save logins and passwords for websites setting enabled
  2. http://gdk.test:3000/flightjs/Flight/-/settings/ci_cd
  3. Navigate to another page
  4. Check functionality of Runners > Project runner registration token

Issue

The culprit is the Project runner registration token form in the dropdown as it switches the field from password to text depending it's state. When it's hidden it's a password which forces FF to believe it should show the save password dialog.

error

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #427896 (closed)
Related to #425468 (closed)

Edited by Sascha Eggenberger

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Justin Ho Tuan Duong removed review request for @justin_ho

    removed review request for @justin_ho

  • added 1 commit

    • b899e799 - Fix save password form dialog on CI/CD Registration token

    Compare with previous version

  • Hey @mrincon can you do the approval for devopsverify ?

  • Sascha Eggenberger requested review from @mrincon

    requested review from @mrincon

  • requested review from @justin_ho

  • Contributor
    1 Warning
    :warning: This MR changes code in ee/, but its Changelog commit is missing the EE: true trailer. Consider adding it to your Changelog commits.

    Reviewer roulette

    Changes that require review have been detected!

    Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

    Category Reviewer Maintainer
    frontend @syarynovskyi profile link current availability (UTC+2, 1 hour ahead of author) @justin_ho profile link current availability (UTC+7, 6 hours ahead of author)
    test for spec/features/* @hmehra profile link current availability (UTC+11, 10 hours ahead of author) Maintainer review is optional for test for spec/features/*

    Please check reviewer's status!

    • available Reviewer is available!
    • unavailable Reviewer is unavailable!

    Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

    To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

    Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

  • Contributor

    Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits 0c485b70 and d2fb0284

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 4.11 MB 4.11 MB - 0.0 %
    mainChunk 3.06 MB 3.06 MB - 0.0 %

    :fearful: Significant Growth: 9

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.admin.applications 85.72 KB 96.05 KB +10.32 KB 12.0 %
    pages.groups.saml_providers 291.26 KB 301.58 KB +10.32 KB 3.5 %
    pages.groups.saml_providers.saml_members.store 291.27 KB 301.59 KB +10.32 KB 3.5 %
    pages.groups.settings.access_tokens 403.91 KB 414.23 KB +10.32 KB 2.6 %
    pages.groups.settings.applications 189.7 KB 200.02 KB +10.32 KB 5.4 %
    pages.groups.sso 246.67 KB 256.99 KB +10.32 KB 4.2 %
    pages.oauth.applications 68.71 KB 79.03 KB +10.32 KB 15.0 %
    pages.projects.settings.access_tokens 441.59 KB 451.91 KB +10.32 KB 2.3 %
    pages.projects.settings.analytics 385.25 KB 395.57 KB +10.32 KB 2.7 %

    Your MR has at least one entrypoint growing significantly (more > 1 KB or 2%). If you write new or extend existing features, this is expected and there is nothing to worry about.

    Please consider pinging someone from the FE Foundations (@leipert, @markrian, @ohoral or @pgascouvaillancourt) for review, if you are unsure about the size increase.

    Note: We do not have exact data for 0c485b70. So we have used data from: f3ab5c45.
    The intended commit has no webpack pipeline, so we chose the last commit with one before it.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

    • Resolved by Justin Ho Tuan Duong

      @seggenberger This component uses input_copy_toggle_visibility.vue internally. Do you think we could find a way to fix this globally there? I bet we would see the same problem in our forms that use it:

      image

      Googling didn't immediately reveal a super easy way to prevent this behavior, so maybe we can research a bit more?

  • Miguel Rincon requested review from @elwyn-gitlab and removed review request for @mrincon

    requested review from @elwyn-gitlab and removed review request for @mrincon

  • added 1 commit

    • 9b900049 - Fix save password form dialog on CI/CD Registration token

    Compare with previous version

  • Sascha Eggenberger requested review from @mrincon

    requested review from @mrincon

  • Miguel Rincon requested review from @dcouture and removed review request for @mrincon

    requested review from @dcouture and removed review request for @mrincon

  • Sascha Eggenberger removed review request for @dcouture

    removed review request for @dcouture

  • added 1 commit

    • 764f21cf - Fix save password form dialog on CI/CD Registration token

    Compare with previous version

  • added 1 commit

    • 1550bb3a - Fix save password form dialog on CI/CD Registration token

    Compare with previous version

  • Contributor

    :tools: Generated by gitlab_quality-test_tooling.

    :recycle: Please share your feedback and suggestions.


    :snail: Slow tests detected in this merge request, might be related with changed RSpec files.

    Job File Name Duration Expected duration
    #5447773911 ee/spec/models/ee/group_spec.rb#L702 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 49.74 s < 45.4 s
  • A deleted user added rspec:slow test detected label
  • Elwyn Benson approved this merge request

    approved this merge request

  • Elwyn Benson removed review request for @elwyn-gitlab

    removed review request for @elwyn-gitlab

  • Justin Ho Tuan Duong removed review request for @justin_ho

    removed review request for @justin_ho

  • added 1 commit

    • d2fb0284 - Fix save password form dialog on CI/CD Registration token

    Compare with previous version

  • requested review from @justin_ho

  • Justin Ho Tuan Duong approved this merge request

    approved this merge request

  • Justin Ho Tuan Duong resolved all threads

    resolved all threads

  • Justin Ho Tuan Duong enabled an automatic merge when the pipeline for df1bd5d3 succeeds

    enabled an automatic merge when the pipeline for df1bd5d3 succeeds

  • mentioned in commit 60657a5c

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading