mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 12:52:29 +02:00
disallow editing of password fields
This commit is contained in:
1 parent
66a2579fb9
commit
fcc1cffc88
1 file changed
+7
@@ -894,6 +894,13 @@ function Editor() //{{{
|
||||
if (!(config.isComposeWindow))
|
||||
textBox = liberator.focus;
|
||||
|
||||
if (textBox.type == "password")
|
||||
{
|
||||
liberator.beep();
|
||||
liberator.echoerr("Cannot edit password fields");
|
||||
return false;
|
||||
}
|
||||
|
||||
let text = ""; // XXX
|
||||
if (textBox)
|
||||
text = textBox.value;
|
||||
|
||||
Reference in new issue
Block a user