New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 696645 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Android MediaRouter only (left Chro...
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug


Participants' hotlists:
Media-Controls


Sign in to add a comment

Crash hit when setting MediaControlsEnabled for videos without controls

Project Member Reported by zqzh...@chromium.org, Feb 27 2017

Issue description

This happens before the video gets inserted into the DOMTree, while the controls haven't been initialized yet. The consequence is that we are calling MediaControls::onMediaControlsEnabledChange() on a null pointer, hitting a crash.
 
Summary: Crash hit when setting MediaControlsEnabled for videos without controls (was: Crash hit when MediaControlsEnabled for videos without controls)
Project Member

Comment 2 by bugdroid1@chromium.org, Feb 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e48ec244742e350bb55ad07dde1150022c536f84

commit e48ec244742e350bb55ad07dde1150022c536f84
Author: zqzhang <zqzhang@chromium.org>
Date: Tue Feb 28 14:33:58 2017

Fix a crash when setting MediaControlsEnabled setting for videos without controls

There's a crash which is triggered when we set MediaControlsEnabled
setting before the video controls get created. This CL adds null-check
before calling MediaControls::onMediaControlsEnabledChange().

BUG= 696645 

Review-Url: https://codereview.chromium.org/2722623002
Cr-Commit-Position: refs/heads/master@{#453595}

[modify] https://crrev.com/e48ec244742e350bb55ad07dde1150022c536f84/third_party/WebKit/LayoutTests/media/controls/settings-disable-controls.html
[modify] https://crrev.com/e48ec244742e350bb55ad07dde1150022c536f84/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Status: Fixed (was: Started)

Sign in to add a comment