-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chromium] Add null checks for MediaSessionDelegate access
The first thing the session does when closing a session is cleaning up the session listeners. This involves, among other things, setting all the delegates to null. It's still possible to get media events from the web engine after we proceed to close the session (like inactive notifications) so we must ensure that we don't run any job in that case and ignore the notification. We went the extra mile and we've also added null checks for a few more insecure usages of getMediaSessionDelegate(). Fixes #915
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters