<?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>43602</bug_id>
          
          <creation_ts>2010-08-05 19:23:08 -0700</creation_ts>
          <short_desc>[gtk] gtk_im_context_focus_in() should only be called when an input-able element has focus</short_desc>
          <delta_ts>2010-08-09 08:50:27 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>0</everconfirmed>
          <reporter name="Brian Tarricone">bjt23</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261038</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Tarricone">bjt23</who>
    <bug_when>2010-08-05 19:23:08 -0700</bug_when>
    <thetext>We have an on-screen keyboard that is implemented as a Gtk IM module.  The change in Martin&apos;s commit 14a3dc3801b495632521c557be1091e79b996b03 that adds a call to gtk_im_context_focus_in() in webkitwebview.cpp:webkit_web_view_focus_in_event() causes the keyboard to pop up all the time, whenever the web view is focused, even if there are no actual editable/input-able elements on the page.

Not sure what the best fix is; commenting out those lines makes the situation better, but there are still some problems.  I&apos;m thinking it should be checking the type of the focused DOM node, and only enable it if it&apos;s something that can accept keyboard input.  But not sure how to do that just yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261042</commentid>
    <comment_count>1</comment_count>
    <who name="Brian Tarricone">bjt23</who>
    <bug_when>2010-08-05 19:31:41 -0700</bug_when>
    <thetext>Oh, that&apos;s svn rev r56072 for the git-impaired ^_^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261316</commentid>
    <comment_count>2</comment_count>
      <attachid>63735</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-08-06 09:59:08 -0700</bug_when>
    <thetext>Created attachment 63735
Patch for this issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261318</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-08-06 10:00:10 -0700</bug_when>
    <thetext>Thanks for reporting this Brian! I&apos;ve uploaded a patch for this issue, but I do not think I can test it locally. Do you mind testing it for yourself? If it works, I&apos;ll mark it r?.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261449</commentid>
    <comment_count>4</comment_count>
    <who name="Brian Tarricone">bjt23</who>
    <bug_when>2010-08-06 14:05:58 -0700</bug_when>
    <thetext>Works perfectly, thanks Martin!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262141</commentid>
    <comment_count>5</comment_count>
      <attachid>63735</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-08-09 08:19:56 -0700</bug_when>
    <thetext>Comment on attachment 63735
Patch for this issue

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262154</commentid>
    <comment_count>6</comment_count>
      <attachid>63735</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-08-09 08:50:23 -0700</bug_when>
    <thetext>Comment on attachment 63735
Patch for this issue

Clearing flags on attachment: 63735

Committed r64983: &lt;http://trac.webkit.org/changeset/64983&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262155</commentid>
    <comment_count>7</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-08-09 08:50:27 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63735</attachid>
            <date>2010-08-06 09:59:08 -0700</date>
            <delta_ts>2010-08-09 08:50:23 -0700</delta_ts>
            <desc>Patch for this issue</desc>
            <filename>bug-43602-20100806095906.patch</filename>
            <type>text/plain</type>
            <size>1573</size>
            <attacher name="Martin Robinson">mrobinson</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9ndGsvQ2hhbmdlTG9nIGIvV2ViS2l0L2d0ay9DaGFuZ2VMb2cK
aW5kZXggYTQ5M2MwZGRmYmI2NWJjMWZmMzZhN2U0NzdjM2QzOWE2MDcxNWI4NC4uMjExY2YwYWU5
ZWQyZWQyNDBlMDA4NDViMGE4MTJhYzdiMTAyMjk0NSAxMDA2NDQKLS0tIGEvV2ViS2l0L2d0ay9D
aGFuZ2VMb2cKKysrIGIvV2ViS2l0L2d0ay9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNiBAQAorMjAx
MC0wOC0wNiAgTWFydGluIFJvYmluc29uICA8bXJvYmluc29uQGlnYWxpYS5jb20+CisKKyAgICAg
ICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgW2d0a10gZ3RrX2ltX2Nv
bnRleHRfZm9jdXNfaW4oKSBzaG91bGQgb25seSBiZSBjYWxsZWQgd2hlbiBhbiBpbnB1dC1hYmxl
IGVsZW1lbnQgaGFzIGZvY3VzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD00MzYwMgorCisgICAgICAgIE9ubHkgY2FsbCBndGtfaW1fY29udGV4dF9mb2N1
c19pbigpIHdoZW4gd2UgZm9jdXMgYSBmcmFtZSB3aGljaCBpcyBjdXJyZW50bHkgaW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