<?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>4708</bug_id>
          
          <creation_ts>2005-08-28 04:40:30 -0700</creation_ts>
          <short_desc>kEventTextInputGetSelectedText doesn&apos;t return any text from WebHTMLViews</short_desc>
          <delta_ts>2005-09-28 10:39:10 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4680</dup_id>
          
          <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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>evan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17800</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-28 04:40:30 -0700</bug_when>
    <thetext>When an input method asks a WebHTMLView for the currently selected text, nothing is returned. 

Steps to reproduce:
1. Open WebCore/layout-tests/editing/inserting/typing-001.html
2. Type something with Kotoeri Hiragana, confirm the inline input area
3. Select one character
4. Press Control-1 or Control-2 (Search similar Kanji, Convert to related character)

Expected results: an inline input area is created from the selection
Actual results: nothing happens

Discussion: here is how the reply to kEventTextInputGetSelectedText looks like (note the emply 
kEventParamTextInputReplyText &apos;trtx&apos;):

(gdb) call (void)_DebugPrintEvent(0x5CD49D0)
Displaying event 5CD49D0...
   Class           text
   Kind            6
   When               3132.53
   Priority        Standard
   RetainCount     1
   Queued          No
   Info            kEventTextInputGetSelectedText
   Parameters
        param: tsci
           type: cmpi
           size: 4
           data: 00FFFFFF810003
                     
        param: buff
           type: long
           size: 4
           data: 00000100
                     
        param: tssm
           type: magn
           size: 4
           data: 00000001
                     
        param: tssl
           type: intl
           size: 2
           data: 0001
                   
        param: tsrc
           type: long
           size: 4
           data: 04FFFFFFE92230
                   &quot;0
        param: trsl
           type: intl
           size: 4
           data: 0001000B
                     
        param: trtx
           type: utxt
           size: 0
           data:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20745</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-28 10:39:10 -0700</bug_when>
    <thetext>This is fixed by implementing attributedSubstringFromRange

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

    </bug>

</bugzilla>