Bug 18675
Summary: | blur/focus events aren't fired when the focus moves between tabs in the same window | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kenn Ejima <kenn.ejima> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Major | CC: | blue, cedricv, jaymcc142, lbrt21 |
Priority: | P2 | Keywords: | InRadar |
Version: | 525.x (Safari 3.1) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Kenn Ejima
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
lobert
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
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
The status of this ticket has been unconfirmed for 7 months. Is there any way to change the status to new / assigned?
Alexey Proskuryakov
*** Bug 24219 has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
<rdar://problem/6629580>