From fcc1cffc88479fce32e16d8e38186f7959d905eb Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Fri, 11 Sep 2009 22:23:06 +0200 Subject: [PATCH] disallow editing of password fields --- common/content/editor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/content/editor.js b/common/content/editor.js index e69f8cda..1916ca6a 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -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;