[Webkit-unassigned] [Bug 151442] New: Selection.deleteFromDocument should not leave a selection character
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 19 04:16:57 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151442
Bug ID: 151442
Summary: Selection.deleteFromDocument should not leave a
selection character
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: Gtk, LayoutTestFailure
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cgarcia at igalia.com
CC: darin at apple.com
This is what happens with test imported/blink/editing/selection/deleteFromDocument-crash.html. It first run selectAll in the focused text area, and removeFromDocument() leaves the last character of the selection in the text area. This is what is causing a failure in GTK+ and win ports. The reason why it passes for mac is because the mac editor behaviour considers selections as not directional. For non directional selections, FrameSelection::willBeModified() when direction is backwards switches the selection base extent. So, when the caret is moved once character backwards in the case of mac, the cursor position is 0 and it doesn't have any effect. For the other ports, the position is the last one (extent). This was fixed in blink r172511, so we could just merge it in WebKit.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151119/a6a6b7d4/attachment.html>
More information about the webkit-unassigned
mailing list