<?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>81186</bug_id>
          
          <creation_ts>2012-03-14 20:02:03 -0700</creation_ts>
          <short_desc>REGRESSION (r103859): Cannot write a word with Korean double consonant</short_desc>
          <delta_ts>2012-04-06 17:14:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>holy.adreamer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>enrica</cc>
    
    <cc>hbono</cc>
    
    <cc>mitz</cc>
    
    <cc>rniwa</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>579063</commentid>
    <comment_count>0</comment_count>
    <who name="">holy.adreamer</who>
    <bug_when>2012-03-14 20:02:03 -0700</bug_when>
    <thetext>When trying to type a word like &apos;깍&apos;, which is &apos;ㄲ+ㅏ+ㄱ&apos;, in a text field,
it results to &apos;ㅏㄱ&apos;.
And a word like &apos;샀&apos;, which is &apos;ㅅ+ㅏ+ㅆ&apos;, results to &apos;ㅆ&apos;.
(For information, ㄲ is type by &apos;Shift+ㄱ&apos;)

It seems like double consonant cannot be combined, and disappears when typed with other vowel.
It happens in every text fields in a web page.

Safari version doesn&apos;t have this kind of problem.

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579149</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-14 23:24:43 -0700</bug_when>
    <thetext>Confirmed with nightly r108302 as a regression form Safari 5.1.3 on OS X Lion.

Steps to reproduce:

1. Enable Hangul 2-set input method.
2. Type Shift+R, K, R in any editable field.

Expected results: 깍
Actual results: ㅏㄱ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579151</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-14 23:25:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/11053232&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>583902</commentid>
    <comment_count>3</comment_count>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-03-21 01:51:35 -0700</bug_when>
    <thetext>Greetings,

When I bisected nightly builds, this issue started from r103870 (*1) on my Lion Mac running on VMWare Fusion 4. Is it possible for someone to double-check this bisection result?

(*1) &lt;http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r103870.dmg&gt;
(*2) &lt;http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r103857.dmg&gt;

Regards,

Hironori Bono

(In reply to comment #1)
&gt; Confirmed with nightly r108302 as a regression form Safari 5.1.3 on OS X Lion.
&gt; 
&gt; Steps to reproduce:
&gt; 
&gt; 1. Enable Hangul 2-set input method.
&gt; 2. Type Shift+R, K, R in any editable field.
&gt; 
&gt; Expected results: 깍
&gt; Actual results: ㅏㄱ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584963</commentid>
    <comment_count>4</comment_count>
      <attachid>133184</attachid>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-03-21 21:39:01 -0700</bug_when>
    <thetext>Created attachment 133184
A quick fix (just for your information)

Greetings,

I have noticed this is a side-effect of r103859 today. To update status text, this change sends a fake mouse-move event when the keyboard status is changed, including when releasing a shift key while composing text. Unfortunately, this fake event confuses a Korean input method and it resets its marked text. Even though I have written a quick fix, it is just for your information and I&apos;m not sure if it is a right fix. Neither do I have good ideas how to write layout tests for it. (It seems this fake event is invisible from JavaScript.)
I wish it helps.

Regards,

Hironori Bono</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588467</commentid>
    <comment_count>5</comment_count>
    <who name="">holy.adreamer</who>
    <bug_when>2012-03-26 19:02:39 -0700</bug_when>
    <thetext>Hello,
I&apos;m currently using r112169, but I&apos;m afraid to say that this issue is still existing.

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588500</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-26 19:47:05 -0700</bug_when>
    <thetext>That&apos;s correct, the bug hasn&apos;t been fixed yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595742</commentid>
    <comment_count>7</comment_count>
      <attachid>133184</attachid>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-04-04 11:24:47 -0700</bug_when>
    <thetext>Comment on attachment 133184
A quick fix (just for your information)

Greetings,

I would like to set r? to my change to get interest of WebKit reviewers. (I wonder if it is good to stall this issue.)

Regards,

Hironori Bono</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595754</commentid>
    <comment_count>8</comment_count>
      <attachid>133184</attachid>
    <who name="">mitz</who>
    <bug_when>2012-04-04 11:40:42 -0700</bug_when>
    <thetext>Comment on attachment 133184
A quick fix (just for your information)

It looks like the problem is that the fake mouse event goes through mouseMovedInternal:, which does [[self inputContext] handleEvent:theEvent]. Since we don’t need the extra handling in -mouseMoved:, I think -postFakeMouseMovedEventForFlagsChangedEvent: should just change to do

    NativeWebMouseEvent webEvent(fakeEvent, self);
    _data-&gt;_page-&gt;handleMouseEvent(webEvent);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596969</commentid>
    <comment_count>9</comment_count>
      <attachid>135918</attachid>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-04-05 15:40:00 -0700</bug_when>
    <thetext>Created attachment 135918
A quick fix v1 (applied a comment)

Greetings,

Many thanks for your review and investigation. I have tested your solution and verified it also fixes this issue. Even though I do not have any ideas how to write a layout test for this issue, would it be possible to review the updated one?

Regards,

Hironori Bono

(In reply to comment #8)
&gt; (From update of attachment 133184 [details])
&gt; It looks like the problem is that the fake mouse event goes through mouseMovedInternal:, which does [[self inputContext] handleEvent:theEvent]. Since we don’t need the extra handling in -mouseMoved:, I think -postFakeMouseMovedEventForFlagsChangedEvent: should just change to do
&gt; 
&gt;     NativeWebMouseEvent webEvent(fakeEvent, self);
&gt;     _data-&gt;_page-&gt;handleMouseEvent(webEvent);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>597000</commentid>
    <comment_count>10</comment_count>
      <attachid>135918</attachid>
    <who name="">mitz</who>
    <bug_when>2012-04-05 16:23:09 -0700</bug_when>
    <thetext>Comment on attachment 135918
A quick fix v1 (applied a comment)

Thanks for fixing this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>597835</commentid>
    <comment_count>11</comment_count>
      <attachid>135918</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-06 17:14:25 -0700</bug_when>
    <thetext>Comment on attachment 135918
A quick fix v1 (applied a comment)

Clearing flags on attachment: 135918

Committed r113523: &lt;http://trac.webkit.org/changeset/113523&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>597836</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-06 17:14:33 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>133184</attachid>
            <date>2012-03-21 21:39:01 -0700</date>
            <delta_ts>2012-04-05 15:40:00 -0700</delta_ts>
            <desc>A quick fix (just for your information)</desc>
            <filename>issue81186-patch0.txt</filename>
            <type>text/plain</type>
            <size>1784</size>
            <attacher name="Hironori Bono">hbono</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDExMTY0OSkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDEyLTAzLTIxICBIaXJvbm9y
aSBCb25vICA8aGJvbm9AY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJFR1JFU1NJT046IENhbm5v
dCB3cml0ZSBhIHdvcmQgd2l0aCBLb3JlYW4gZG91YmxlIGNvbnNvbmFudAorICAgICAgICBodHRw
czovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODExODYKKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBXZWJLaXQgY2hhbmdlIHIxMDM4NTkg
cG9zdHMgZmFrZSBtb3VzZS1tb3ZlIGV2ZW50cyB3aGVuIHRoZSBrZXlib2FyZCBzdGF0dXMgaXMK
KyAgICAgICAgY2hhbmdlZC4gVW5mb3J0dW5hdGVseSwgdGhlc2UgZmFrZSBldmVudHMgY29uZnVz
ZSBhIEtvcmVhbiBpbnB1dCBtZXRob2QgYW5kIGl0CisgICAgICAgIHJlc2V0cyBpdHMgbWFya2Vk
IHRleHQuIFRoaXMgY2hhbmdlIHByZXZlbnRzIHNlbmRpbmcgdGhlc2UgZmFrZSBldmVudHMgd2hp
bGUKKyAgICAgICAg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G93XSBjb252ZXJ0U2NyZWVuVG9CYXNlOltOU0V2ZW50
IG1vdXNlTG9jYXRpb25dXQogICAgICAgICBtb2RpZmllckZsYWdzOltmbGFnc0NoYW5nZWRFdmVu
dCBtb2RpZmllckZsYWdzXSB0aW1lc3RhbXA6W2ZsYWdzQ2hhbmdlZEV2ZW50IHRpbWVzdGFtcF0g
d2luZG93TnVtYmVyOltmbGFnc0NoYW5nZWRFdmVudCB3aW5kb3dOdW1iZXJdCiAgICAgICAgIGNv
bnRleHQ6W2ZsYWdzQ2hhbmdlZEV2ZW50IGNvbnRleHRdIGV2ZW50TnVtYmVyOjAgY2xpY2tDb3Vu
dDowIHByZXNzdXJlOjBdOwo=
</data>
<flag name="review"
          id="140210"
          type_id="1"
          status="-"
          setter="mitz"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>135918</attachid>
            <date>2012-04-05 15:40:00 -0700</date>
            <delta_ts>2012-04-06 17:14:25 -0700</delta_ts>
            <desc>A quick fix v1 (applied a comment)</desc>
            <filename>issue81186-patch1.txt</filename>
            <type>text/plain</type>
            <size>1870</size>
            <attacher name="Hironori Bono">hbono</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDExMzM4NikKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDEyLTA0LTA1ICBIaXJvbm9y
aSBCb25vICA8aGJvbm9AY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJFR1JFU1NJT046IENhbm5v
dCB3cml0ZSBhIHdvcmQgd2l0aCBLb3JlYW4gZG91YmxlIGNvbnNvb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WJLaXQyL1VJUHJvY2Vzcy9BUEkvbWFjL1dLVmlldy5tbQkocmV2aXNpb24gMTEzMzU4KQorKysg
U291cmNlL1dlYktpdDIvVUlQcm9jZXNzL0FQSS9tYWMvV0tWaWV3Lm1tCSh3b3JraW5nIGNvcHkp
CkBAIC0yMTQ5LDcgKzIxNDksOCBAQCAtICh2b2lkKV9wb3N0RmFrZU1vdXNlTW92ZWRFdmVudEZv
ckZsYWdzCiAgICAgTlNFdmVudCAqZmFrZUV2ZW50ID0gW05TRXZlbnQgbW91c2VFdmVudFdpdGhU
eXBlOk5TTW91c2VNb3ZlZCBsb2NhdGlvbjpbW2ZsYWdzQ2hhbmdlZEV2ZW50IHdpbmRvd10gY29u
dmVydFNjcmVlblRvQmFzZTpbTlNFdmVudCBtb3VzZUxvY2F0aW9uXV0KICAgICAgICAgbW9kaWZp
ZXJGbGFnczpbZmxhZ3NDaGFuZ2VkRXZlbnQgbW9kaWZpZXJGbGFnc10gdGltZXN0YW1wOltmbGFn
c0NoYW5nZWRFdmVudCB0aW1lc3RhbXBdIHdpbmRvd051bWJlcjpbZmxhZ3NDaGFuZ2VkRXZlbnQg
d2luZG93TnVtYmVyXQogICAgICAgICBjb250ZXh0OltmbGFnc0NoYW5nZWRFdmVudCBjb250ZXh0
XSBldmVudE51bWJlcjowIGNsaWNrQ291bnQ6MCBwcmVzc3VyZTowXTsKLSAgICBbc2VsZiBtb3Vz
ZU1vdmVkOmZha2VFdmVudF07CisgICAgTmF0aXZlV2ViTW91c2VFdmVudCB3ZWJFdmVudChmYWtl
RXZlbnQsIHNlbGYpOworICAgIF9kYXRhLT5fcGFnZS0+aGFuZGxlTW91c2VFdmVudCh3ZWJFdmVu
dCk7CiB9CiAKIC0gKE5TSW50ZWdlciljb252ZXJzYXRpb25JZGVudGlmaWVyCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>