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: Fix uncaught global OBJECT_DESTROYED errors #6460

Merged

Conversation

joeyparrish
Copy link
Member

Related to #6458

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit 32d7054 into shaka-project:main Apr 19, 2024
13 of 15 checks passed
@joeyparrish joeyparrish deleted the fix-object-destroyed-errors branch April 19, 2024 20:39
joeyparrish added a commit to joeyparrish/shaka-player that referenced this pull request Apr 19, 2024
The tests for MediaSourceEngine codec switching were written to ignore types
and suppress access controls.  The were unreadable, too, with very little
whitespace, confusing one-letter variable names, and difficult-to-follow event
mocking.  This made it more difficult to debug test failures in PR shaka-project#6460.

This rewrites the tests in a more readable manner with compiler enforcement of
types in the tests.  Two helper functions are used to isolate the necessary
access-control suppressions.

This exposed a bug in the tests, in which one test case (preserve SourceBuffer
attributes) only passed because the original version failed to await on an
async process.  I am not sure that the functionality in that test exists at
that level.  For now, the test is disabled.  I'll follow up with removal after
more investigation.

Related to shaka-project#6458, shaka-project#6460
joeyparrish added a commit to joeyparrish/shaka-player that referenced this pull request Apr 19, 2024
The tests for MediaSourceEngine codec switching were written to ignore types
and suppress access controls.  The were unreadable, too, with very little
whitespace, confusing one-letter variable names, and difficult-to-follow event
mocking.  This made it more difficult to debug test failures in PR shaka-project#6460.

This rewrites the tests in a more readable manner with compiler enforcement of
types in the tests.  Two helper functions are used to isolate the necessary
access-control suppressions.

This exposed a bug in the tests, in which one test case (preserve SourceBuffer
attributes) only passed because the original version failed to await on an
async process.  I am not sure that the functionality in that test exists at
that level.  For now, the test is disabled.  I'll follow up with removal after
more investigation.

Related to shaka-project#6458, shaka-project#6460
avelad pushed a commit that referenced this pull request Apr 22, 2024
The tests for MediaSourceEngine codec switching were written to ignore
types and suppress access controls. The were unreadable, too, with very
little whitespace, confusing one-letter variable names, and
difficult-to-follow event mocking. This made it more difficult to debug
test failures in PR #6460.

This rewrites the tests in a more readable manner with compiler
enforcement of types in the tests. Two helper functions are used to
isolate the necessary access-control suppressions.

This exposed a bug in the tests, in which one test case (preserve
SourceBuffer attributes) only passed because the original version failed
to await on an async process. I am not sure that the functionality in
that test exists at that level. For now, the test is disabled. I'll
follow up with removal after more investigation.

Related to #6458, #6460
joeyparrish added a commit that referenced this pull request May 7, 2024
joeyparrish added a commit that referenced this pull request May 7, 2024
The tests for MediaSourceEngine codec switching were written to ignore
types and suppress access controls. The were unreadable, too, with very
little whitespace, confusing one-letter variable names, and
difficult-to-follow event mocking. This made it more difficult to debug
test failures in PR #6460.

This rewrites the tests in a more readable manner with compiler
enforcement of types in the tests. Two helper functions are used to
isolate the necessary access-control suppressions.

This exposed a bug in the tests, in which one test case (preserve
SourceBuffer attributes) only passed because the original version failed
to await on an async process. I am not sure that the functionality in
that test exists at that level. For now, the test is disabled. I'll
follow up with removal after more investigation.

Related to #6458, #6460
joeyparrish added a commit that referenced this pull request May 7, 2024
joeyparrish added a commit that referenced this pull request May 7, 2024
The tests for MediaSourceEngine codec switching were written to ignore
types and suppress access controls. The were unreadable, too, with very
little whitespace, confusing one-letter variable names, and
difficult-to-follow event mocking. This made it more difficult to debug
test failures in PR #6460.

This rewrites the tests in a more readable manner with compiler
enforcement of types in the tests. Two helper functions are used to
isolate the necessary access-control suppressions.

This exposed a bug in the tests, in which one test case (preserve
SourceBuffer attributes) only passed because the original version failed
to await on an async process. I am not sure that the functionality in
that test exists at that level. For now, the test is disabled. I'll
follow up with removal after more investigation.

Related to #6458, #6460
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.

None yet

3 participants