Bug 116925

Summary: A focused element should lose focus when it becomes unfocusable
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, benjamin, darin, tkent
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2013-05-29 00:34:38 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/c58f636fd18fc27944c42e27d6a92a36867c57e1 According to the specification, we should remove focus when a focused element becomes unforcusable, and Internet Explorer follows it. We check focusable state after layout asynchronously because setFocusedNode(0) dispatches synchronous events and callers of Document::updateLayout don't expect DOM state changes. Also, we introduce m_didPostCheckFocusedNodeTask flag to avoid duplicated tasks in the pending task queue.
Attachments
Kent Tamura
Comment 1 2013-05-29 01:00:16 PDT
*** This bug has been marked as a duplicate of bug 112992 ***
Note You need to log in before you can comment on or make changes to this bug.