Bug 143157 - Safari clears selection when its window gets activated via mouse down
Summary: Safari clears selection when its window gets activated via mouse down
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
Keywords: InRadar, Regression
Depends on:
Reported: 2015-03-27 15:36 PDT by Ryosuke Niwa
Modified: 2015-03-27 15:56 PDT (History)
3 users (show)

See Also:

Fixes the bug (5.97 KB, patch)
2015-03-27 15:40 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Fixed non-Mac builds (6.00 KB, patch)
2015-03-27 15:41 PDT, Ryosuke Niwa
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.

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>