| Index: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| index bcd0d7c4fd5a72c48714ddd2ae41fb5732adb989..c081aaa0265152d81d3cacbef97d98bacd432925 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| @@ -590,6 +590,11 @@ void MediaControls::stoppedCasting() {
|
| void MediaControls::defaultEventHandler(Event* event) {
|
| HTMLDivElement::defaultEventHandler(event);
|
|
|
| + // Do not handle events to not interfere with the rest of the page if no
|
| + // controls should be visible.
|
| + if (!mediaElement().shouldShowControls())
|
| + return;
|
| +
|
| // Add IgnoreControlsHover to m_hideTimerBehaviorFlags when we see a touch
|
| // event, to allow the hide-timer to do the right thing when it fires.
|
| // FIXME: Preferably we would only do this when we're actually handling the
|
|
|