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

Prevent recursion in error event handlers that throw #5549

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jun 7, 2023

This PR will...

  • Prevent recursion in error event handlers that throw
  • Internal exception events from other error events where the handler throws are fatal

Why is this Pull Request needed?

The player should handle flaws in event callbacks as best it can. Preventing recursion avoids locking up the browser because of a flawed integration of hls.js, and making these error events fatal when processing of an error was flawed in the first place hopefully helps with debugging and encourages better coding practices.

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Fixes #5497

@robwalch robwalch added this to the 1.5.0 milestone Jun 7, 2023
@robwalch robwalch merged commit 78b5013 into master Jun 8, 2023
@robwalch robwalch deleted the task/error-handler-exception-recursion branch June 8, 2023 23:33
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.

throwing an error in error hook may cause endless loop
1 participant