NEW 18675
blur/focus events aren't fired when the focus moves between tabs in the same window
https://bugs.webkit.org/show_bug.cgi?id=18675
Summary blur/focus events aren't fired when the focus moves between tabs in the same ...
Kenn Ejima
Reported 2008-04-21 23:53:17 PDT
Here's the screecast: http://screencast.com/t/UtSsSCtdX As you see, if you activate another window, onBlur event gets called, but if you activate another tab in the same window, onBlur event isn't called. Firefox works perfectly in that sense. You can confirm it in the screencast: http://screencast.com/t/xTkKUZhI1Xn The following HTML is the test code used here. <html> <head> <title>test</title> <script type="text/javascript"> function onBodyFocus() { document.title = 'onBodyFocus'; } function onBodyBlur() { document.title = 'onBodyBlur'; } </script> </head> <body onBlur="onBodyBlur()" onFocus="onBodyFocus()"> </body> </html>
Attachments
lobert
Comment 1 2008-12-09 23:23:50 PST
Hi, This bug is also present in Safari 3.2.1 with Mac OS X 10.5.5 when tabbing using trigger window.onblur The following HTML is the test code used here. <html> <head> <title>test</title> <script type="text/javascript"> window.onblur = onBodyBlur; window.onfocus = onBodyFocus; function onBodyFocus() { document.title = 'onBodyFocus'; } function onBodyBlur() { document.title = 'onBodyBlur'; } </script> </head> <body> </body> </html>
lobert
Comment 2 2008-12-09 23:25:08 PST
Hi, This bug is also present in Safari 3.2.1 with Mac OS X 10.5.5 when tabbing using trigger window.onblur The following HTML is the test code used here. <html> <head> <title>test</title> <script type="text/javascript"> window.onblur = onBodyBlur; window.onfocus = onBodyFocus; function onBodyFocus() { document.title = 'onBodyFocus'; } function onBodyBlur() { document.title = 'onBodyBlur'; } </script> </head> <body> </body> </html>
Kenn Ejima
Comment 3 2008-12-10 00:06:52 PST
The status of this ticket has been unconfirmed for 7 months. Is there any way to change the status to new / assigned?
Alexey Proskuryakov
Comment 4 2009-02-27 01:39:44 PST
*** Bug 24219 has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 5 2009-02-27 01:42:59 PST
Note You need to log in before you can comment on or make changes to this bug.