<?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>19375</bug_id>
          
          <creation_ts>2008-06-03 08:57:38 -0700</creation_ts>
          <short_desc>window.focus steals focus from other windows</short_desc>
          <delta_ts>2013-09-30 11:30: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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug, HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Erik Arvidsson">erik.arvidsson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jcraig</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82203</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2008-06-03 08:57:38 -0700</bug_when>
    <thetext>If I am happily working in one window or tab and another window or tab does a window.focus() WebKit immediately changes to that tab.

Steps to reproduce:

1. Open attached file in a new tab or window.
2. Go to another tab or window

Desired effect:

Should stay on the non attachment tab/window

Actual effect:

Switches to the attachment tab/window every 5 seconds.


This is very destructive since apps like gmail does this and gmail has weird keyboard shortcuts.  As I was writing this comment gmail stole my focus and triggered the &apos;r&apos;  (reply) command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82204</commentid>
    <comment_count>1</comment_count>
      <attachid>21478</attachid>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2008-06-03 08:58:29 -0700</bug_when>
    <thetext>Created attachment 21478
Open this in a background tab</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82218</commentid>
    <comment_count>2</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2008-06-03 10:39:38 -0700</bug_when>
    <thetext>I modified the test case a little to call focus() on a textarea in the timer but that does not trigger the focus stealing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82907</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-11 00:26:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/5999626&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>934693</commentid>
    <comment_count>4</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-09-30 11:30:33 -0700</bug_when>
    <thetext>Reassigning to Event Handling.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21478</attachid>
            <date>2008-06-03 08:58:29 -0700</date>
            <delta_ts>2008-06-03 08:58:29 -0700</delta_ts>
            <desc>Open this in a background tab</desc>
            <filename>steal focus.html</filename>
            <type>text/html</type>
            <size>177</size>
            <attacher name="Erik Arvidsson">erik.arvidsson</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHRpdGxlPjwvdGl0bGU+CjxzdHlsZT4KCjwv
c3R5bGU+CjxzY3JpcHQ+Cgp3aW5kb3cuc2V0SW50ZXJ2YWwoZnVuY3Rpb24oKSB7CiAgd2luZG93
LmZvY3VzKCk7Cn0sIDUwMDApOwoKPC9zY3JpcHQ+CjwvaGVhZD4KPGJvZHk+Cgo8L2JvZHk+Cjwv
aHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>