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

fix(GlobalOnErrorHandler) avoid calling it when we handle the error #2411

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

saghul
Copy link
Member

@saghul saghul commented Dec 14, 2023

No description provided.

They should never be needed if the error is handled, and if it isn't, it
will bubble up and end up in the handler anyway due to window.onerror.
All modern browsers implement window.addEventListener for the 'error'
and 'unhandledrejection' listeners. Thus there is zero benefit from
using the legacy `onerror` handler here and rolling multiple handlers
ourselves.

There is an old config option `enableWindowOnErrorHandler` which was
never whitelisted in Jitsi Meet, so I'm 100% sure nobody is using it.

Even if someone was, migrarting to the above is simply better in every
possible way.
@saghul saghul merged commit 536b30f into jitsi:master Dec 14, 2023
2 checks passed
saghul added a commit to jitsi/jitsi-meet that referenced this pull request Dec 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants