[Webkit-unassigned] [Bug 210677] New: REGRESSION (r249160): Deleting newline after pasting text ending in a newline results in a discontinuity
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 17 15:55:02 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=210677
Bug ID: 210677
Summary: REGRESSION (r249160): Deleting newline after pasting
text ending in a newline results in a discontinuity
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
URL: data:text/html,%3ctextarea%3e%3c/textarea%3e
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ddkilzer at webkit.org
CC: dbates at webkit.org, koivisto at iki.fi,
mmaxfield at apple.com, wenson_hsieh at apple.com,
zalan at apple.com
Depends on: 201181
Summary:
Pasting text that ends with a newline, then immediately deleting that newline, results in a discontinuity in a <textarea> element.
Steps to Reproduce
1. Load URL: <data:text/html,%3ctextarea%3e%3c/textarea%3e>
2. Resize.
3. Type in "lorem\n\n\n\nipsum\n" (hit the Enter key for each newline).
4. Select "lorem" plus its ending newline and copy to pasteboard.
5. Position insertion bar on line 3 (blank line between "lorem and ipsum").
6. Paste text.
7. Immediately hit Delete key.
Expected Results:
Blank line should be deleted after pasting "lorem\n".
Actual Results:
Blank is deleted, but the text is not redrawn with the line removed. Moving the insertion bar with left/right arrow keys will show it jump over the deleted newline. (Using up/down arrow keys will actually not move the insertion bar past the deleted newline.)
Regression:
Via bisection, this regressed in r249160 which was the fix for Bug 201181:
Bug 201181: InlineTextBox::end() should return first-past-end offset
<https://bugs.webkit.org/show_bug.cgi?id=201181>
<rdar://problem/54758922>
<https://trac.webkit.org/changeset/249160/webkit>
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=201181
[Bug 201181] InlineTextBox::end() should return first-past-end offset
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200417/91142a75/attachment.htm>
More information about the webkit-unassigned
mailing list