I’ve noticed that onDetach is not called when closing the browser/tab in Firefox (PC) and every mobile browser, works on Edge (PC). Reload works everywhere.
Is there any workaround?
EDIT
x.getUi().getSession().getState() is OPEN even if the browser is closed