mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
disallow editing of password fields
This commit is contained in:
@@ -894,6 +894,13 @@ function Editor() //{{{
|
|||||||
if (!(config.isComposeWindow))
|
if (!(config.isComposeWindow))
|
||||||
textBox = liberator.focus;
|
textBox = liberator.focus;
|
||||||
|
|
||||||
|
if (textBox.type == "password")
|
||||||
|
{
|
||||||
|
liberator.beep();
|
||||||
|
liberator.echoerr("Cannot edit password fields");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
let text = ""; // XXX
|
let text = ""; // XXX
|
||||||
if (textBox)
|
if (textBox)
|
||||||
text = textBox.value;
|
text = textBox.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user