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 'r' (reply) command.
Created attachment 21478 [details] Open this in a background tab
I modified the test case a little to call focus() on a textarea in the timer but that does not trigger the focus stealing.
<rdar://problem/5999626>
Reassigning to Event Handling.