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

chore: cherry-pick db71a0afc1d0 from chromium #22943

Merged
merged 2 commits into from Apr 6, 2020

Conversation

nornagon
Copy link
Member

@nornagon nornagon commented Apr 2, 2020

Clear context from orphan handlers when BaseAudioContext is going away

When preparing to collect a BaseAudioContext, go through all the
rendering_orphan_handlers_ and deletable_orphan_handlers_ and remove
the context from the handler. This ensures that these handlers no
longer have references to the context when the BaseAudioContext is
destroyed because in some cases, these orphan handlers will get pulled
and access the context, which is already gone.

Clearing these in a prefinalizer ensures these orphan handlers don't
try to touch the context.

Manually verified that the repro case no longer reproduces.

Bug: 1062247
Change-Id: I50d083743903eb9544e09aa1ee912fc880331501
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2107806
Reviewed-by: Kentaro Hara haraken@chromium.org
Reviewed-by: Hongchan Choi hongchan@chromium.org
Commit-Queue: Raymond Toy rtoy@chromium.org
Cr-Commit-Position: refs/heads/master@{#751814}

Notes: Security: backported fix for use-after-poison in WebAudio.

@nornagon nornagon requested a review from a team as a code owner April 2, 2020 23:16
@nornagon nornagon added the 7-2-x label Apr 2, 2020
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 2, 2020
@nornagon nornagon added the backport-check-skip Skip trop's backport validity checking label Apr 3, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 3, 2020
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing tests are not related

@nornagon nornagon merged commit 7586295 into 7-2-x Apr 6, 2020
@release-clerk
Copy link

release-clerk bot commented Apr 6, 2020

Release Notes Persisted

Security: backported fix for use-after-poison in WebAudio.

@nornagon nornagon deleted the cherry-pick/7-2-x/chromium/db71a0afc1d0 branch April 6, 2020 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7-2-x backport-check-skip Skip trop's backport validity checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants