Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index c6a95286d46fbb6b5997fb4a96e026649f9672a7..1879bd27a40a0ea6f0f5761a4afa255a009bd0fd 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -3057,7 +3057,8 @@ bool EventHandler::keyEvent(const PlatformKeyboardEvent& initialKeyEvent) |
{ |
RefPtr<FrameView> protector(m_frame->view()); |
- if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(m_frame->document())) { |
+ ASSERT(m_frame->document()); |
+ if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*m_frame->document())) { |
if (fullscreen->webkitIsFullScreen() && !isKeyEventAllowedInFullScreen(fullscreen, initialKeyEvent)) |
return false; |
} |