Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 9a339bd89785e8814b5d0b6361fd02a41df373d4..7b3557788a1f987195a96623908a9cf09fbc956d 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -939,7 +939,7 @@ HitTestResult EventHandler::hitTestResultAtPoint(const LayoutPoint& point, HitTe |
HitTestResult result(point, padding.height(), padding.width(), padding.height(), padding.width()); |
- if (!m_frame->contentRenderer()) |
+ if (!m_frame->contentRenderer() || !m_frame->view() || !m_frame->view()->didFirstLayout()) |
return result; |
// hitTestResultAtPoint is specifically used to hitTest into all frames, thus it always allows child frame content. |