Bug 145823 - Takes two delete key presses to delete pasted emoji up-pointing index finger with skin tone
Summary: Takes two delete key presses to delete pasted emoji up-pointing index finger ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-09 16:13 PDT by Darin Adler
Modified: 2015-06-09 20:51 PDT (History)
6 users (show)

See Also:


Attachments
Patch (15.58 KB, patch)
2015-06-09 16:16 PDT, Darin Adler
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2015-06-09 16:13:00 PDT
Takes two delete key presses to delete pasted emoji up-pointing index finger with skin tone
Comment 1 Darin Adler 2015-06-09 16:16:58 PDT
Created attachment 254612 [details]
Patch
Comment 2 Darin Adler 2015-06-09 16:17:56 PDT
<rdar://problem/20966101>
Comment 3 WebKit Commit Bot 2015-06-09 16:20:26 PDT
Attachment 254612 [details] did not pass style-queue:


ERROR: Source/WebCore/rendering/RenderText.cpp:1410:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Anders Carlsson 2015-06-09 16:26:29 PDT
Comment on attachment 254612 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254612&action=review

> Source/WebCore/rendering/RenderText.cpp:1444
> +    // FIXME: Seems like this fancier case could be used on all platforms now, no
> +    // need for the #else case below.

What about Windows?
Comment 5 Darin Adler 2015-06-09 16:31:38 PDT
Comment on attachment 254612 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254612&action=review

>> Source/WebCore/rendering/RenderText.cpp:1444
>> +    // need for the #else case below.
> 
> What about Windows?

I think it would be OK to have Windows take on this behavior.
Comment 6 Darin Adler 2015-06-09 16:50:20 PDT
Committed r185393: <http://trac.webkit.org/changeset/185393>
Comment 7 Alexey Proskuryakov 2015-06-09 20:51:42 PDT
Comment on attachment 254612 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254612&action=review

> Source/WebCore/rendering/RenderText.cpp:1440
> +    // FIXME: Unclear why this has so much handrolled code rather than using TextBreakIterator.

I'm not sure what this question asks. The behaviors are just different, because user expectations are different for deleting and for moving the insertion point. There are some test cases, although it's likely not fully covered. 

We should just keep the behavior 100% identical to AppKit.

>>> Source/WebCore/rendering/RenderText.cpp:1444
>>> +    // need for the #else case below.
>> 
>> What about Windows?
> 
> I think it would be OK to have Windows take on this behavior.

We investigated the behavior of Windows applications at the time, and matched it. I don't know if existing Windows WebKit clients prefer Mac or Windows behavior for editing now.