Index: Source/core/frame/History.cpp |
diff --git a/Source/core/frame/History.cpp b/Source/core/frame/History.cpp |
index d0f861ab9613c7a9ab369057c25e5c0100f48918..b1cb482d5fb78fff2e9f4b6d8003fc5cf21200a8 100644 |
--- a/Source/core/frame/History.cpp |
+++ b/Source/core/frame/History.cpp |
@@ -106,7 +106,7 @@ void History::go(ExecutionContext* context, int distance) |
if (!activeDocument) |
return; |
- if (!activeDocument->canNavigate(*m_frame)) |
+ if (!activeDocument->frame() || !activeDocument->frame()->canNavigate(*m_frame)) |
return; |
if (distance) |