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.
The text was updated successfully, but these errors were encountered:
foolip
added a commit
to foolip/browser-compat-data
that referenced
this issue
Jul 12, 2024
I have tested https://mdn-bcd-collector.gooborg.com/tests/api/BeforeUnloadEvent in Edge 15 and 18 in BrowserStack. The issue most likely affects Edge 12-18.
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.
The text was updated successfully, but these errors were encountered: