You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test returns false with "Cannot create event". However, BeforeUnloadEvent is defined and 'returnValue' in BeforeUnloadEvent.prototype is true, so the event interface is supported.
Unlike other custom event tests, trying new BeforeUnloadEvent('beforeunload') won't work, because Edge throws with "Function expected".
I can't see a good way to write a test that will give the right result on all browsers, so filing this issue.