Bug 45972 - The cursor in input textbox is invisible after switched the focus back to the browser window on Mac OS X
Summary: The cursor in input textbox is invisible after switched the focus back to the...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 10:22 PDT by zhoushuqun
Modified: 2010-09-18 23:20 PDT (History)
2 users (show)

See Also:


Attachments
The status of step 2 and step 3. (7.50 KB, image/png)
2010-09-17 10:22 PDT, zhoushuqun
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description zhoushuqun 2010-09-17 10:22:44 PDT
Created attachment 67915 [details]
The status of step 2 and step 3.

What steps will reproduce the problem?
1. Prepare an html page with an input textbox as below:
<html>
<head>
<title>hello</title>
</head>
<body>
<input type="text">
</body>
</html>
2. Open the html by safari or chorme and type a long text (longer than the textbox) into the input textbox. Do NOT move the cursor just keep it on the tail of the text. (Right now, the tail of the text is visible and the head is invisble)
3. Focus to the other window directly, and then switch back. Now the head of the text is visible, and the cursor never moved as before, but invisible.

What is the expected output? What do you see instead?
Keep the tail of the text and the cusor visible as before.

Please use labels and text to provide additional information.
Safari 5.0.2 (5533.18.5) or Google Chrome 6.0.472.59 on Mac OS X (Darwin Kernel Version 9.8.0)
Comment 1 Simon Fraser (smfr) 2010-09-17 15:28:49 PDT
It's not obvious to me that this is a bug. This is how native text fields work on Mac.
Comment 2 zhoushuqun 2010-09-18 01:12:26 PDT
(In reply to comment #1)
> It's not obvious to me that this is a bug. This is how native text fields work on Mac.

You mean the NSTextField?
I create a cocoa application and add a NSTextField with Interface Builder,
or try on the search box on the right-top of the safari,
or try to open the html with firefox(I don't know if it uses the native text fields of Mac),
they all keep  the tail of the text and the cusor visible.
Comment 3 Simon Fraser (smfr) 2010-09-18 13:22:55 PDT
Ah, if the text field does not lose focus, then you're right, the scroll and caret positions are maintained.
Comment 4 zhuobing 2010-09-18 23:20:09 PDT
Yep, after you switch back,the text filed is still on focus, AND the  Cursor is ALSO in the end of the words BUT you can't see it, (you can keep on typing,it's all right just like you never switched),so, i think it's a bug!
(In reply to comment #3)
> Ah, if the text field does not lose focus, then you're right, the scroll and caret positions are maintained.