<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>248367</bug_id>
          
          <creation_ts>2022-11-26 17:15:25 -0800</creation_ts>
          <short_desc>compositionstart event&apos;s data should contain text to replace</short_desc>
          <delta_ts>2022-11-28 05:02:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>118684</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=118684</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1914798</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-26 17:15:25 -0800</bug_when>
    <thetext>Hi Team,

I was going through Blink commits and found another case, which can be merged:

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/b336a53b180ca88e40fef99e7f0a0779bd3d5986/Source/WebCore/editing/Editor.cpp#L2161

Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=153319

Just wanted to raise this bug before trying to do PR.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914881</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-11-27 18:53:37 -0800</bug_when>
    <thetext>This was done in Bug 118684 by Ryosuke in July 2013!
&gt; &quot;to match IE and Firefox behaviors&quot;

So why it&apos;s not here anymore. 

Ah Ryosuke is mentioning that his patch was simpler by just calling `selectedText()`
https://chromiumcodereview.appspot.com/18041002#msg10


selectedText() was later renamed as originalText
https://github.com/WebKit/WebKit/commit/c824bf1ebb4be32e85df6256fe0619a22a637019#diff-298ab5f43228bb977d82fadbd60cad9a87bb25aa0e3eabdb77779a8455136d0bR1872-R1883

Adding Ryosuke, to know if this change is really necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914939</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-28 05:02:07 -0800</bug_when>
    <thetext>Marking as Duplicate - since Blink commit was same. So no need to do it again. Thanks!

*** This bug has been marked as a duplicate of bug 118684 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>