Bug 121792�User can see content of password and hidden fields in page info, and this option cannot be turned off

patch by db48x@yahoo.com r=caillon@returnzero.com sr=jag
This commit is contained in:
timeless%mac.com 2006-09-14 06:02:15 +00:00
Родитель 224b3d1809
Коммит 2c39dc42e3
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -323,7 +323,10 @@ function onFormSelect()
if(elem.nodeName.toLowerCase() == "button")
fieldView.addRow([i+1, "", elem.name, elem.type, getValueText(elem)]);
else
fieldView.addRow([i+1, "", elem.name, elem.type, elem.value]);
{
var val = (elem.type == "password") ? theBundle.getString("formPassword") : elem.value;
fieldView.addRow([i+1, "", elem.name, elem.type, val]);
}
}
var labels = form.getElementsByTagName("label");

Просмотреть файл

@ -39,6 +39,7 @@ formUntitled=Unnamed Form:
formDefaultTarget=None (opens in same window)
formChecked=Checked
formUnchecked=Unchecked
formPassword=********
linkAnchor=Anchor
linkArea=Area