Bug 15021

Summary: Mouse left click does not set focus to <div> with style overflow:auto
Product: WebKit Reporter: Sridhar Gurivireddy <just1gb>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: aroben, webkit
Priority: P2 Keywords: PlatformOnly
Version: 523.x (Safari 3)   
Hardware: PC   
OS: Windows XP   
URL: http://www.youtube.com/

Description Sridhar Gurivireddy 2007-08-20 08:55:06 PDT
When a div has style "overflow:auto" and has content more than it can fit, left_clicking mouse on the <div> should set keyboard focus to the <div>. Scrolling using keyboard up and down arrow keys should scroll the div and not the main page that contains it.

Repro steps: 
1)Play any video @ youttube
2)Click on the div which shows related videos
3)press Keys "up" or "down" arrown
4) Safari scrolls main page instead of the div.
Comment 1 David Kilzer (:ddkilzer) 2007-08-20 09:20:04 PDT
Works for me with a local debug build of WebKit r25149 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).

May be a Windows-only issue.

Comment 2 Robert Blaut 2008-02-17 14:10:24 PST
I've checked the reported issue using the latest Webkit r30236 for Windows and the latest beta of Safari. Everything works correctly. So WORKSFORME