XGameUi: mask password text entry input #2067

Manually merged
github merged 1 commit from gh-pr/2067/head into gh-pr/2067/base 2026-11-26 04:53:47 +00:00
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 04:20 UTC · original
fuzeofficlal:fix/hle-xgameui-password-mask-881 → main · +93 −8 · 1 files · 1 commits · merged 2026-11-25 21:54 UTC

Closes #881.

Summary

  • Pass scope == PASSWORD (31) from text_entry_async into the host text-entry dialog and add ES_PASSWORD to the EDIT control style in dialog::edit_style so password prompts mask typed characters.

Testing

  • Added xgameui::tests::password_scope_masks_the_edit_control verifying ES_PASSWORD style selection and 0x88 vtable dispatch across plain, URL, and PASSWORD input scopes.
  • cargo test -p victory-hle --locked, cargo clippy --workspace --all-targets --all-features -- -D warnings, and cargo xtask policy.
**@⁠fuzeofficlal** on GitHub · 2026-11-25 04:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/2067) `fuzeofficlal:fix/hle-xgameui-password-mask-881` → `main` · +93 −8 · 1 files · 1 commits · merged 2026-11-25 21:54 UTC Closes #881. ### Summary - Pass `scope == PASSWORD` (`31`) from `text_entry_async` into the host text-entry dialog and add `ES_PASSWORD` to the `EDIT` control style in `dialog::edit_style` so password prompts mask typed characters. ### Testing - Added `xgameui::tests::password_scope_masks_the_edit_control` verifying `ES_PASSWORD` style selection and `0x88` vtable dispatch across plain, URL, and `PASSWORD` input scopes. - `cargo test -p victory-hle --locked`, `cargo clippy --workspace --all-targets --all-features -- -D warnings`, and `cargo xtask policy`.
Pass scope == PASSWORD into the host text-entry dialog and add ES_PASSWORD to its edit control style so password prompts do not display typed characters in clear text.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:53:45 +00:00
github manually merged commit cf0edf00c7 into gh-pr/2067/base 2026-11-26 04:53:47 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-25 04:23 UTC · original

Triage verdict — Keep as the current implementation of #881 (cf0edf0)

Evidence

  • @⁠fuzeofficlal and @⁠NATON4’s earlier #1027 use the same masking mechanism: carry the Password scope into the Win32 dialog and set ES_PASSWORD. #1027 closed without merging. #370 covered the length limit and is already in main. This branch preserves that limit and adds vtable-level checks for plain, URL, and Password scopes. Current patch · Earlier patch

Checks and limits

  • Compared the actual patches and their test coverage. The live-control masking and async result checks in #881 were run on @⁠BastienRodz’s earlier branch. This PR’s added tests verify scope routing and edit styles without opening a dialog. Prior live-control verification

Next step

  • Retain this PR as the active fix and preserve credit for @⁠NATON4’s earlier implementation and @⁠BastienRodz’s report. Keep the existing scope and length coverage together.

This verification was AI-assisted.

**@⁠jeremygold02** on GitHub · 2026-11-25 04:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/2067#issuecomment-7152806316) **Triage verdict — Keep as the current implementation of #881** (`cf0edf0`) **Evidence** - @⁠fuzeofficlal and @⁠NATON4’s earlier #1027 use the same masking mechanism: carry the Password scope into the Win32 dialog and set `ES_PASSWORD`. #1027 closed without merging. #370 covered the length limit and is already in `main`. This branch preserves that limit and adds vtable-level checks for plain, URL, and Password scopes. [Current patch](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2067/files) · [Earlier patch](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1027/files) **Checks and limits** - Compared the actual patches and their test coverage. The live-control masking and async result checks in #881 were run on @⁠BastienRodz’s earlier branch. This PR’s added tests verify scope routing and edit styles without opening a dialog. [Prior live-control verification](https://git.gtahub.st/github/Marvisak--VIctory/issues/881) **Next step** - Retain this PR as the active fix and preserve credit for @⁠NATON4’s earlier implementation and @⁠BastienRodz’s report. Keep the existing scope and length coverage together. This verification was AI-assisted.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:24 UTC · original

Automated triage for the maintainers.

Looks mergeable. In victory-hle/src/modules/xgameui.rs, text_entry_async now passes scope == PASSWORD (the constant already in main, used by max_length_for) down to dialog::ask. A new dialog::edit_style then adds ES_PASSWORD to the edit control, so password prompts are masked. The length limit and cancel behaviour are unchanged. The new test checks the style bits and that the scope is routed through the 0x88 slot for plain, URL and password scopes. CI is passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/2067#issuecomment-7159659307) <!-- victory-triage v1 head=cf0edf00c708f1bffd178b12cd6b630c240acfe8 verdict=merge-candidate at=2026-11-25T10:24:42Z --> Automated triage for the maintainers. Looks mergeable. In `victory-hle/src/modules/xgameui.rs`, `text_entry_async` now passes `scope == PASSWORD` (the constant already in main, used by `max_length_for`) down to `dialog::ask`. A new `dialog::edit_style` then adds `ES_PASSWORD` to the edit control, so password prompts are masked. The length limit and cancel behaviour are unchanged. The new test checks the style bits and that the scope is routed through the 0x88 slot for plain, URL and password scopes. CI is passing. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2067
No description provided.