Bug 90144 - WebKitWebView claims that it has a selection while it doesn't
Summary: WebKitWebView claims that it has a selection while it doesn't
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 01:33 PDT by Guillaume Desmottes
Modified: 2017-03-11 10:56 PST (History)
1 user (show)

See Also:


Attachments
test app (1.06 KB, text/x-csrc)
2012-06-28 01:33 PDT, Guillaume Desmottes
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Desmottes 2012-06-28 01:33:31 PDT
Created attachment 149900 [details]
test app

- Build and run the attached test app
- Select some text in the text view. As you can see the 'selection-changed' signal is fired and webkit_web_view_has_selection() returns TRUE; all good
- Now type some text in the GtkEntry at the bottom of the window and select this text. The view selection is deslected, the signal is fired but webkit_web_view_has_selection() still returns TRUE while there is no selection any more.

Actually, I noticed that single clicking in the view while having a selection does not update webkit_web_view_has_selection() either most of time.

This leads to some copy/pasting issue in Empathy: https://bugzilla.gnome.org/show_bug.cgi?id=603031#c13