When the X11 selection changes, the selection in the WebView will collapse. If the new selection is in another WebView though, both selections will still be active. To reproduce: 1. In Epiphany, open two tabs. 2. Select some text in one tab. 3. Select some text in the next. 4. Note that the selection still exists in both tabs.
Created attachment 47275 [details] Patch for this issue I've attached a patch for this issue which sends a bit more information to the clear callback.
kov raised some concerns over IRC that this might break tests that seek that verify that one selection can exist per-frame. This change doesn't actually "fix" that behavior. The selection will only be collapsed if it is in another WebView or another application. I think fixing this to work between frame might deserve another patch.
Comment on attachment 47275 [details] Patch for this issue Clearing flags on attachment: 47275 Committed r54230: <http://trac.webkit.org/changeset/54230>
All reviewed patches have been landed. Closing bug.