Repository navigation
[PM-42349] fix: use fixed-length password mask - #7293
Conversation
|
Thank you for your contribution! We've added this to our internal tracking system for review. Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process. |
11b8ee8 to
839a7ad
Compare
|
Hi @488315 It's harmless right now since all three opted-in call sites pass Repro (drop into Keying the state off the displayed value fixes it, and the existing tests still pass:
Could you double check this one? Thanks for the submission ๐ |
Codecov Reportโ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7293 +/- ##
==========================================
+ Coverage 86.35% 86.78% +0.43%
==========================================
Files 893 887 -6
Lines 65488 65838 +350
Branches 9861 10169 +308
==========================================
+ Hits 56550 57136 +586
+ Misses 5464 5124 -340
- Partials 3474 3578 +104
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Harness. ๐ New features to boost your workflow:
|
|
Thanks for catching that. I double checked it and you were right. I reproduced it with the regression test you sent first, and it failed with the mask being emitted on the initial tap. I updated I also reran the focused Appreciate you pointing this one out. |
|
|
||
| composeTestRule | ||
| .onNodeWithTextAfterScroll(textField.name) | ||
| .onChildren() |
There was a problem hiding this comment.
You still have some failing tests in this file
|
Thanks for all the hard work @488315 |
No problem! |
Tracking
Fixes #7290 (PM-42337)
Objective
Use a fixed eight-character mask for hidden login passwords and custom hidden fields so their displayed mask no longer reveals the underlying value length.
The shared password component keeps its existing length-based behavior by default. Only the affected login-password and custom-hidden-field call sites opt into the fixed-length mask, so existing behavior for card numbers, security codes, bank fields, identity fields, SSH keys, and other masked values is unchanged.
Regression coverage verifies:
Validation:
./gradlew.bat :ui:testDebugUnitTest./gradlew.bat :ui:lintDebug./gradlew.bat detekt -Pprecommit=true --rerun-tasksgit diff --checkAll completed checks passed with JDK 21.
Screenshots
N/A. There is no layout or styling change; affected hidden login/custom values consistently render eight mask characters.