<?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>9640</bug_id>
          
          <creation_ts>2006-06-28 15:18:41 -0700</creation_ts>
          <short_desc>GMail Editor: window.focus() called on keyDown</short_desc>
          <delta_ts>2017-01-28 11:00:20 -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>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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=167537</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9638</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>c.petersen87</cc>
    
    <cc>ian</cc>
    
    <cc>mdavids</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47686</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-06-28 15:18:41 -0700</bug_when>
    <thetext>The arrow keys change focus to the Subject: field instead of moving the caret around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47694</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-06-28 16:58:20 -0700</bug_when>
    <thetext>On keyDown,  GMail calls window.focus(), which focuses the main frame, which kills the selection in the editable frame.  Why are they calling window.focus()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49583</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-07-12 21:58:24 -0700</bug_when>
    <thetext>GMail is Google.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52412</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2006-10-16 12:37:47 -0700</bug_when>
    <thetext>Yes, I&apos;m running into this problem too.

Pressing &quot;&lt; &quot; (home) or &quot;&gt;&quot; (end) places focus out of the message body field and puts the caret in the TO field.

Same thing happens when pressing ctrl-&quot;&lt;&quot; or ctrl-&quot;&gt;&quot; in attempting to move the caret to the start or end of line. Very annoying...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48454</commentid>
    <comment_count>4</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-10-30 18:02:11 -0800</bug_when>
    <thetext>*** Bug 10988 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48420</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-10-30 18:04:03 -0800</bug_when>
    <thetext>*** Bug 11298 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46428</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-11-08 17:25:47 -0800</bug_when>
    <thetext>Confirmed that the arrow key problem goes away when I comment out the call to frame-&gt;focus() in KJSWindow::focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46429</commentid>
    <comment_count>7</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-11-08 17:27:45 -0800</bug_when>
    <thetext>Confirmed that 10988 works correctly when I comment out the call to
frame-&gt;focus() in KJSWindow::focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46359</commentid>
    <comment_count>8</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-11-08 17:28:37 -0800</bug_when>
    <thetext>Ditto for 11298.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42263</commentid>
    <comment_count>9</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-12-13 15:45:19 -0800</bug_when>
    <thetext>This is in radar as &lt;rdar://problem/4810960&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35484</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2007-01-12 09:32:52 -0800</bug_when>
    <thetext>I think this is a WebKit bug. Repro here:

http://bantha.org/~mdavids/safari/safari.html

Inside the iframe, key events like &apos;a&apos; and &apos;b&apos; only trigger the inner event handler. But arrow keys and Cmd-A trigger both error handlers. This is why you&apos;re seeing that behavior in Gmail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34750</commentid>
    <comment_count>11</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-01-15 19:16:18 -0800</bug_when>
    <thetext>r18875</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>