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)

defect

Tracking

()

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

  1. Open https://jsfiddle.net/4jvnom5e/
  2. Set focus to content editable
  3. wait 5s

Result

Gecko doesn't fire blur event. But Blink fires blur event.

If Blink fires it, we probably should, but not sure what the specs say.

Flags: needinfo?(annevk)
Priority: -- → P3

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)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.