Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 98cd8dd6a9e2cff06694ae5b82d463c4df0a3985..77b8d092b575134c78ca6e83bb6921de8a50aa86 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -2373,7 +2373,7 @@ void Document::open() |
if (m_frame) |
m_frame->loader().didExplicitOpen(); |
- if (m_loadEventProgress != LoadEventInProgress && m_loadEventProgress != UnloadEventInProgress) |
+ if (m_loadEventProgress != LoadEventInProgress && pageDismissalEventBeingDispatched() == NoDismissal) |
m_loadEventProgress = LoadEventNotRun; |
} |