Index: Source/core/frame/History.cpp |
diff --git a/Source/core/frame/History.cpp b/Source/core/frame/History.cpp |
index 3d82ad6adacc6381129c8b9cad137e8842d3c37a..f0c3a0595a4a57dfd2ec920b8eb7826803b778eb 100644 |
--- a/Source/core/frame/History.cpp |
+++ b/Source/core/frame/History.cpp |
@@ -125,7 +125,7 @@ KURL History::urlForState(const String& urlString) |
void History::stateObjectAdded(PassRefPtr<SerializedScriptValue> data, const String& /* title */, const String& urlString, UpdateBackForwardListPolicy updateBackForwardListPolicy, ExceptionState& exceptionState) |
{ |
- if (!m_frame || !m_frame->page()) |
+ if (!m_frame || !m_frame->page() || !m_frame->loader().documentLoader()) |
return; |
KURL fullURL = urlForState(urlString); |