Opera `window.onfocus`, `window.onblur` events bug.
anonan last edited by anonan
The link to the video demonstration: https://youtu.be/noJWd6bBkUs
Opera triggers several false
window.onblurevents when you click on a tab.
Switching tabs via Ctrl+Tab does not fire additional events.
Both Opera and Chrome trigger two
onclickevent when you open a new tab in background.
It looks like a bug. I think it should be triggered only one time.
Probably the first
onfocusis the event that fire immediately after clicking and creating the tab in background.
Chrome also loses a focus when you drag the tab.
If you wanna test this by yourself