Chromium Code Reviews| Index: Source/core/dom/Fullscreen.cpp |
| diff --git a/Source/core/dom/Fullscreen.cpp b/Source/core/dom/Fullscreen.cpp |
| index 64b67a512ecf0eaffa02f3a1ab79bd769c43df31..d095f53cb6ecd06dfdc59fce2a126bb55e4a9b5a 100644 |
| --- a/Source/core/dom/Fullscreen.cpp |
| +++ b/Source/core/dom/Fullscreen.cpp |
| @@ -231,8 +231,11 @@ void Fullscreen::requestFullscreen(Element& element, RequestType requestType) |
| // An algorithm is allowed to show a pop-up if, in the task in which the algorithm is running, either: |
| // - an activation behavior is currently being processed whose click event was trusted, or |
| // - the event listener for a trusted click event is being handled. |
| - if (!UserGestureIndicator::processingUserGesture()) |
| + if (!UserGestureIndicator::processingUserGesture()) { |
| + document()->executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource, WarningMessageLevel, |
| + "requestFullScreen can only be initiated by a user gesture.")); |
|
Mike West
2014/09/29 12:24:08
I'd suggest pulling in 'ExceptionMessages::failedT
Mayur Kankanwadi
2014/09/30 13:56:39
Done.
|
| break; |
| + } |
| // Fullscreen is not supported. |
| if (!fullscreenIsSupported(element.document(), element)) |