consistency: approve-tx password field not cleared when view is shown #85

Closed
opened 2026-02-28 21:29:47 +01:00 by clawbot · 0 comments
Collaborator

Problem

In approval.js, the showTxApproval() function does not clear the #approve-tx-password field when the view is shown. By contrast, showSignApproval() does clear #approve-sign-password (line 344), and confirmTx.show() clears #confirm-tx-password.

This means if a user enters a wrong password on a transaction approval, navigates away, and comes back, the old password text may still be present.

Expected behavior

All password fields should be cleared when their view is shown.

Files affected

  • src/popup/views/approval.js (showTxApproval() function)

Suggested fix

Add $("approve-tx-password").value = ""; and $("approve-tx-error").classList.add("hidden"); to the showTxApproval() function.

Found during consistency audit for #78.

## Problem In `approval.js`, the `showTxApproval()` function does not clear the `#approve-tx-password` field when the view is shown. By contrast, `showSignApproval()` does clear `#approve-sign-password` (line 344), and `confirmTx.show()` clears `#confirm-tx-password`. This means if a user enters a wrong password on a transaction approval, navigates away, and comes back, the old password text may still be present. ## Expected behavior All password fields should be cleared when their view is shown. ## Files affected - `src/popup/views/approval.js` (`showTxApproval()` function) ## Suggested fix Add `$("approve-tx-password").value = "";` and `$("approve-tx-error").classList.add("hidden");` to the `showTxApproval()` function. Found during consistency audit for #78.
clawbot added the
bot
label 2026-02-28 21:29:47 +01:00
clawbot self-assigned this 2026-02-28 22:09:37 +01:00
clawbot removed their assignment 2026-02-28 22:10:59 +01:00
sneak closed this issue 2026-02-28 22:24:55 +01:00
clawbot removed the
bot
label 2026-02-28 22:29:09 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: sneak/AutistMask#85
No description provided.