In Chrome 67 it seems that having a parent page with an iFrame no longer fires the beforeunload event when the parent page is redirected.
I have tried the following with no luck
attachEventListener to in the iFrame to the beforeunload
Directly set the window.onbeforeunload event to a function
Close the parent page, remove the iframe from the dom, set the iFrame src to about:blank/ '', _blank etc in none of the scenarios does the attached event function get called?
This worked in 66 how do I get this to work in 67?
Please could someone assist with this its quite urgent.