Skip to content

Commit

Permalink
Keep WebContents alive only for audible media.
Browse files Browse the repository at this point in the history
  • Loading branch information
szilardszaloki committed Sep 19, 2024
1 parent 68fcaaa commit 981a87c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void PlaylistSidePanelCoordinator::OnViewIsDeleting(views::View* view) {

void PlaylistSidePanelCoordinator::DestroyWebContentsIfNeeded() {
DCHECK(contents_wrapper_);
if (!contents_wrapper_->web_contents()->GetCurrentlyPlayingVideoCount()) {
if (!contents_wrapper_->web_contents()->IsCurrentlyAudible()) {
contents_wrapper_.reset();
}
}
Expand Down

0 comments on commit 981a87c

Please sign in to comment.