password-ctrl-click-lose-focus.html   [plain text]


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
</head>
<body>
<p><b>BUG ID:</b> <a href="rdar://problem/4604703">4604703</a> REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field</p>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
<br>1) Make a selection in the password field
<br>2) Ctrl-click in the text field</p>

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
After ctrl-clicking in the text field, the password field should lose focus, and its selection should be cleared.
</p>

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
After ctrl-clicking in the text field, if the password field still has a selection, the test has failed.
</p>
<br><input type="text" value="Ctrl-Click in this field.  Test passes if the password field no longer has a selection." size=100></input>
<br><input type="password" id="pass" value="12345"></input>
</body>
</html>