Some laptop devices doesn’t trigger Javascript blur event functions while the window is on the full screen

I have written a code to detect whether the user is going out of the browser window. (like a lockdown browser)
window.addEventListener('blur', onBlur);

Most laptop devices I have tried successfully triggers the onBlur function if the window lost focus.
But some laptops doesn’t trigger the onBlur function while it’s on full screen. So far I found this issue only on HP laptops which are using Intel Iris GPU.

I have tried adding the blur event to the document.body as well. Didn’t work.