Bug 97965 - Creates invalid selections after a pasting in text and pressing key
Summary: Creates invalid selections after a pasting in text and pressing key
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 420+
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-29 08:13 PDT by bugzilla
Modified: 2022-07-29 10:53 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla 2012-09-29 08:13:55 PDT
Using Qt 4.8.3 (and whatever Webkit sits behind that). Issue happens on Windows and Linux at least.

Set isContentEditable(True) on a QWebView/Page. Create a paragraph with some text in it. Copy some text, pick a point within the paragraph block (not at the end) and choose paste. Then without clicking mouse, hit a key. 

Webkit will now draw a phantom "selection" from the point after where the space was inserted until the end of the block. It isn't a "real" selection in that choosing to copy etc will not give you that text, it is just an annyoance. The user can make a "real" selection elsewhere in the document, scrolling the page offscreen etc will not clear that painted selection. The ony thing that can be done is to create a selection with the cursor that overlaps the entire phantom selection, and then undo it.
Comment 1 Alexey Proskuryakov 2022-07-29 10:53:33 PDT
The Qt port has been removed from WebKit, resolving this bug.