Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Issue 2653553005: [Video] Fix DCHECK crash in PauseVideoIfHidden (Closed)

Created:
3 years, 11 months ago by whywhat
Modified:
3 years, 11 months ago
CC:
apacible+watch_chromium.org, chromium-reviews, erickung+watch_chromium.org, feature-media-reviews_chromium.org, miu+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Video] Fix DCHECK crash in PauseVideoIfHidden WMPI::OnFrameHidden() can get called when the frame is closed. WMPI::IsHidden() will return false in this case, however it's assumed to return true in OnFrameHidden and the methods called from there. BUG=684256 TEST=manual Review-Url: https://codereview.chromium.org/2653553005 Cr-Commit-Position: refs/heads/master@{#445869} Committed: https://chromium.googlesource.com/chromium/src/+/5f91d1754a7ffa39cff9619db090b91b8d1b4a98

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added IsHidden() check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M media/blink/webmediaplayer_impl.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (5 generated)
whywhat
PTaL I took a little more conservative approach here than what I suggested in the ...
3 years, 11 months ago (2017-01-24 04:49:38 UTC) #2
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2653553005/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2653553005/diff/1/media/blink/webmediaplayer_impl.cc#newcode1408 media/blink/webmediaplayer_impl.cc:1408: if (!delegate_->IsFrameClosed()) { Perhaps just call IsHidden()? Also, ...
3 years, 11 months ago (2017-01-24 19:51:21 UTC) #3
watk
On 2017/01/24 19:51:21, sandersd wrote: > lgtm > > https://codereview.chromium.org/2653553005/diff/1/media/blink/webmediaplayer_impl.cc > File media/blink/webmediaplayer_impl.cc (right): > ...
3 years, 11 months ago (2017-01-24 21:50:04 UTC) #4
whywhat
Added IsHidden() check
3 years, 11 months ago (2017-01-24 21:59:27 UTC) #5
whywhat
Since I want to merge this to 57, I'll do the rename in a follow ...
3 years, 11 months ago (2017-01-24 22:02:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2653553005/20001
3 years, 11 months ago (2017-01-24 22:03:38 UTC) #9
sandersd (OOO until July 31)
On 2017/01/24 22:02:08, whywhat_slow_PST_till_Feb_6 wrote: > Since I want to merge this to 57, I'll ...
3 years, 11 months ago (2017-01-24 22:09:38 UTC) #10
watk
Yeah, I'd add that even if the names don't convey their meaning precisely, it's important ...
3 years, 11 months ago (2017-01-24 22:12:14 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 00:11:46 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5f91d1754a7ffa39cff9619db090...

Powered by Google App Engine
This is Rietveld 408576698