Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
index d0c6f2176eeb22d6831d589ca52935a4299cf71f..444196e00ed022f10692d3adc6e613bfc7647bc0 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -1124,6 +1124,9 @@ void FrameLoader::restoreScrollPositionAndViewState() |
if (!needsHistoryItemRestore(m_loadType)) |
return; |
+ if (!documentLoader()) |
Nate Chapin
2015/12/03 17:49:13
Maybe add this to the first if() statement? It's s
skobes
2015/12/03 18:40:32
Done.
|
+ return; |
+ |
bool shouldRestoreScroll = m_currentItem->scrollRestorationType() != ScrollRestorationManual; |
bool shouldRestoreScale = m_currentItem->pageScaleFactor(); |