Skip to content

fix(duckplayer): prevent stale references to DOM nodes #595

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

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

shakyShane
Copy link
Contributor

@shakyShane shakyShane commented Jun 26, 2023

https://app.asana.com/0/1203249713006009/1204905284325687/f

In some instances, we were holding onto DOM nodes for too long. We were checking isConnected to ensure we didn't call methods on DOM nodes that were no longer in the page - which was great for preventing exceptions, but it meant in lots of cases we were not able to pause the video or present our overlay consistently

@shakyShane
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@shakyShane shakyShane force-pushed the shane/duckplayer/remove-refs branch 2 times, most recently from 009f72a to bb7d353 Compare June 26, 2023 19:40
Base automatically changed from shane/duckplayer/video-overlay-fixes to main June 26, 2023 19:46
@shakyShane shakyShane force-pushed the shane/duckplayer/remove-refs branch from bb7d353 to 07d511b Compare June 26, 2023 19:47
@shakyShane shakyShane merged commit 87b8d1e into main Jun 26, 2023
@shakyShane shakyShane deleted the shane/duckplayer/remove-refs branch June 26, 2023 19:53
@shakyShane
Copy link
Contributor Author

Merged since @SabrinaTardio and I have tested the native integrations extensively

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.

1 participant