WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
8324
REGRESSION: textarea :focus not applied immediately
https://bugs.webkit.org/show_bug.cgi?id=8324
Summary
REGRESSION: textarea :focus not applied immediately
Denis Defreyne
Reported
2006-04-11 02:33:01 PDT
OVERVIEW: When selecting a textarea, its :focus selector is not always applied directly. STEPS TO REPRODUCE: 1. Open the example at <
http://amonre.org/pub/css/textarea-focus/
>. 2. Click in the textarea to focus it. The textarea's background color stays red, but it should be green. 3. Switch to another window or tab, and select the window or tab containing the textarea. The textarea's background color turns green. EXPECTED RESULTS: In the example: the textarea's background color should be green whenever it is selected. ACTUAL RESULTS: In the example: the textarea's background color stays red when selecting the textarea. The textarea's background color turns green when re-focusing the window containing the textarea.
Attachments
Implement formControlIsBecomingFirstResponder
(11.75 KB, patch)
2006-04-12 11:14 PDT
,
mitz
no flags
Details
Formatted Diff
Diff
Implement formControlIsBecomingFirstResponder
(12.90 KB, patch)
2006-04-12 11:52 PDT
,
mitz
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2006-04-12 07:48:11 PDT
This is a regression from r9935 (Make sure :focus is not matched when the window is not key). Clicking in the text area makes the WebHTMLView resign as first responder, which ultimately calls setDisplaysWithFocusAttributes(false), preventing the focus selector from matching. When the window is made key again, even though the WebHTMLView is still not first responder, it calls setDisplaysWithFocusAttributes(true). I think this can be fixed by implementing formControlIsBecomingFirstResponder methods like the formControlIsResigningFirstResponder that already exist.
mitz
Comment 2
2006-04-12 11:14:05 PDT
Created
attachment 7656
[details]
Implement formControlIsBecomingFirstResponder And another manual test...
mitz
Comment 3
2006-04-12 11:52:36 PDT
Created
attachment 7657
[details]
Implement formControlIsBecomingFirstResponder
Darin Adler
Comment 4
2006-04-12 12:47:20 PDT
Comment on
attachment 7657
[details]
Implement formControlIsBecomingFirstResponder Looks fine. r=me
Justin Garcia
Comment 5
2006-04-12 16:38:14 PDT
I think we can automate the manual test included in the patch, eventSender.mouseClick for first part and layoutTestController.setWindowIsKey for the second part.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug