Open
Bug 1575160
Opened 6 years ago
Updated 3 years ago
blur event isn't fired when document is hidden
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Core
DOM: UI Events & Focus Handling
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox70 | --- | affected |
People
(Reporter: m_kato, Unassigned)
References
()
Details
Sample: https://jsfiddle.net/4jvnom5e/
When debugging bug 1574596, I found that blur event isn't fired on focused element when visibility is changed. Blink fires blur event, but Gecko doesn't. Should we fire blur event?
Step
- Open https://jsfiddle.net/4jvnom5e/
- Set focus to content editable
- wait 5s
Result
Gecko doesn't fire blur event. But Blink fires blur event.
Comment 1•6 years ago
|
||
If Blink fires it, we probably should, but not sure what the specs say.
Flags: needinfo?(annevk)
Priority: -- → P3
Comment 2•6 years ago
|
||
See https://github.com/w3c/uievents/issues/236 for a discussion on this. It seems like the outcome there will be to dispatch a blur event, but only at a certain point in time to avoid having to check layout too often.
Flags: needinfo?(annevk)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•