consistency: approve-tx password field not cleared when view is shown #85
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#85
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
approval.js, theshowTxApproval()function does not clear the#approve-tx-passwordfield when the view is shown. By contrast,showSignApproval()does clear#approve-sign-password(line 344), andconfirmTx.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 theshowTxApproval()function.Found during consistency audit for #78.