Bug 143157

Summary: Safari clears selection when its window gets activated via mouse down
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: WebKit2Assignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, enrica, mitz
Priority: P2 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug
none
Fixed non-Mac builds andersca: review+

Description Ryosuke Niwa 2015-03-27 15:36:03 PDT
Reproduction steps:
1. In a Safari window, select some text in a webpage
2. Switch to another window (so that Safari window will be inactive).
3. Click anywhere in the Safari window to activate it back.

Expected result:
Selection stays in tact (not being cleared).

Actual result:
Selection gets cleared.

<rdar://problem/16797013>
Comment 1 Ryosuke Niwa 2015-03-27 15:40:33 PDT
Created attachment 249613 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2015-03-27 15:41:38 PDT
Created attachment 249615 [details]
Fixed non-Mac builds
Comment 3 Ryosuke Niwa 2015-03-27 15:55:51 PDT
Per Andres' in-person comment, I'm replacing USE(APP_KIT) by PLATFORM(MAC).
Comment 4 Ryosuke Niwa 2015-03-27 15:56:58 PDT
Committed r182087: <http://trac.webkit.org/changeset/182087>