1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:12:26 +01:00

disallow editing of password fields

This commit is contained in:
Martin Stubenschrott
2009-09-11 22:23:06 +02:00
parent 66a2579fb9
commit fcc1cffc88

View File

@@ -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;