Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeforeUnloadEvent tests return false negative in Edge 15-18 #1666

Open
foolip opened this issue Jul 12, 2024 · 0 comments
Open

BeforeUnloadEvent tests return false negative in Edge 15-18 #1666

foolip opened this issue Jul 12, 2024 · 0 comments

Comments

@foolip
Copy link
Member

foolip commented 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.

foolip added a commit to foolip/browser-compat-data that referenced this issue Jul 12, 2024
Testing of Edge 15 and 18 was done in
openwebdocs/mdn-bcd-collector#1666. Since it's
supported in IE, assume that support goes back to Edge 12 here.
queengooborg pushed a commit to mdn/browser-compat-data that referenced this issue Jul 14, 2024
Testing of Edge 15 and 18 was done in
openwebdocs/mdn-bcd-collector#1666. Since it's
supported in IE, assume that support goes back to Edge 12 here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant