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 796d33ce9fd1e3bc77d96cd4486d9f34795911e6..fd0f51ca7d38f92ec8bf9f4d8e17b4cd052e75c0 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -3229,6 +3229,8 @@ |
return; |
if (load_event_progress_ <= kUnloadEventInProgress) { |
+ if (GetPage()) |
+ GetPage()->WillUnloadDocument(*this); |
Element* current_focused_element = FocusedElement(); |
if (isHTMLInputElement(current_focused_element)) |
toHTMLInputElement(*current_focused_element).EndEditing(); |