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 96346da3e40f67f008ce7f0182592fc5e49c2bbb..8efd69ac281a25c0bd1dfe995bc2b52870622769 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -2351,7 +2351,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; |
} |