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

Issue 2671993002: [Blink>Media] Fix a crash in autoplay caused by delayed visibility observation (Closed)

Created:
3 years, 10 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blink>Media] Fix a crash in autoplay caused by delayed visibility observation There is a crash caused by delayed visibility observation after an autoplay muted video gets unmuted, so that HTMLMediaElement tries to stop the observer twice. However the pointer to the observer is set to null on stop, thus a crash happens. This CL adds null-check in HTMLMediaElement::onVisibilityChangedForAutoplay() to avoid the crash. BUG=686458 Review-Url: https://codereview.chromium.org/2671993002 Cr-Commit-Position: refs/heads/master@{#448641} Committed: https://chromium.googlesource.com/chromium/src/+/0268543786283db4107d2362f338901d909545b1

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 chunk +4 lines, -0 lines 3 comments Download

Messages

Total messages: 16 (9 generated)
Zhiqiang Zhang (Slow)
PTAL The failing test is generated by the fuzz bots, which a modified version of ...
3 years, 10 months ago (2017-02-03 13:59:13 UTC) #3
mlamouri (slow - plz ping)
https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode4011 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:4011: return; Why should we early return here? Shouldn't we ...
3 years, 10 months ago (2017-02-06 12:55:43 UTC) #4
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode4011 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:4011: return; On 2017/02/06 12:55:43, mlamouri wrote: > Why should ...
3 years, 10 months ago (2017-02-06 14:17:15 UTC) #5
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2671993002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode4011 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:4011: return; On 2017/02/06 at 14:17:14, Zhiqiang Zhang wrote: ...
3 years, 10 months ago (2017-02-07 12:36:27 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/2671993002/1
3 years, 10 months ago (2017-02-07 16:21:50 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/0268543786283db4107d2362f338901d909545b1
3 years, 10 months ago (2017-02-07 16:25:57 UTC) #15
Zhiqiang Zhang (Slow)
3 years, 10 months ago (2017-02-07 20:45:54 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2683783002/ by zqzhang@chromium.org.

The reason for reverting is: Decided to fix the issue in IntersectionObserver
instead of HTMLMediaElement. This CL will be reverted and be superseded by the
new fix..

Powered by Google App Engine
This is Rietveld 408576698