Closed
Bug 348186
Opened 19 years ago
Closed 11 months ago
window.onblur not triggered when other program or desktop is focused
Categories
(Core Graveyard :: Widget: Mac, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: koen.vossen, Unassigned)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
The window.onblur event is not triggered when Mozilla put out of focus, for example when clicking on another application or on the desktop. It only seems to happen in OS X, Windows and Linux work fine.
Additionally: window.onblur does trigger when you switch tabs, but then is called three times in a row!
Reproducible: Always
Steps to Reproduce:
1. Create the following document:
<html>
<body>
<script language="javascript">
function test(){
alert('test')
}
window.onblur = test;
</script>
</body>
</html>
2. Load this document in your browser.
3. Click the desktop.
Actual Results:
Nothing happens.
Expected Results:
A 'test' message box should appear.
Comment 1•18 years ago
|
||
I can confirm that this also happens in 2.0 RC2. I have attached a testcase.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1) Gecko/20061003 Firefox/2.0
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•18 years ago
|
||
Im changing this to critical because I have gotten FF to crash on me 3 or 4 times by using the test attachment. Its not consistent, but the crash happens when I close the test window, which occasionally triggers a blur for the now closed window. The popup alert sheet is not attached to any window. Dismissing it causes a crash.
Also, If you blur the page by clicking on its url or search fields, you actually trigger the event twice. Not sure if that is a related bug. I'll try to attach a screenshot of the floating alert.
Severity: normal → critical
Comment 3•18 years ago
|
||
Dismissing the alert causes a crash.
Comment 4•18 years ago
|
||
crashlog from the resulting crash
Window.OnBlur also does not trigger when using mac shortcut keyboard (e.g. F12)
F12 on mac operates the Dashboard widgets
![]() |
||
Updated•16 years ago
|
Assignee: nobody → joshmoz
Component: Shell Integration → Widget: Mac
Product: Firefox → Core
QA Contact: shell.integration → mac
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•